How can I de-escape my strings at run time?
Chip Salzenberg
chip at tct.uucp
Fri Jun 8 01:14:20 AEST 1990
According to peter at ficc.ferranti.com (Peter da Silva):
>meissner at osf.org (Michael Meissner) writes:
>> The C standard mandates that \r and \n have separate numeric values.
>
>That'll be fun for Microware and people using OS/9.
I once did a cross-compiler for OS/9.
OS/9 text files have lines terminated with 0x0D.
So I defined '\n' as 0x0D.
I had to define '\r' as something different from '\n'.
You guessed it.
I defined '\r' as 0x0A.
Shoot me now.
--
Chip, the new t.b answer man <chip at tct.uucp>, <uunet!ateng!tct!chip>
More information about the Comp.lang.c
mailing list