escape sequences

Sep 18, 2009 at 1:52pm
We all know about things like /n, /b, /a, /0, and /v. There are others. But... as far as I know, there's a way to put ANYTHING as an escape sequence using it's HEX value or OCT value. Anyone privy to this information?
Sep 18, 2009 at 2:18pm
Sure. chars are mere numbers, and so are escape sequences.
/0 = 0, /n = 10 and so on.
see http://en.wikipedia.org/wiki/Control_character
Sep 18, 2009 at 2:32pm
\x30 is equal to the character whose ASCII value is 0x30, etc.

Oct 28, 2009 at 2:50pm
Thanks. I needed jsmith's answer. I should've been more specific. You can't just put a number in a string without manipulating it manually as an array. I wanted something you could put as part of a string assignment. Thanks regardless for the effort hamsterman.
Topic archived. No new replies allowed.