From: Johan K. <joh...@id...> - 2001-05-18 19:10:46
|
Well, it looks that constants are supported after all with the \0ooo and \0xhh escape sequence. However both swallow an extra byte, so that e.g. "\0123Hallo" ended up with "Sallo". They both use the strtol() to convert the value so the maximum allowed number of digits are not limited. I really would like us to be ANSI compiant, but I don't have the ANSI spec's. So what should we do? I propose the following: \0ooo maximum three digits, maybe less: "\0123Hallo" ="SHallo", "\01234Hallo"="S4Hallo", "\077Hallo" ="?Hallo" and \xhh maxmimum two digits, likewise and hey, what the heck :) \0xhh maximum two digits |