Macro substitution in character literals
Sean Eric Fagan
sef at kithrup.COM
Sat Dec 8 12:42:41 AEST 1990
In article <14683 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>If you're desperate, you might try
> #define chr(c) #c[0]
Microsoft C 6.0 has a #@ construct, which is like stringizing, only it
yields a character instead of a string.
I know, it's not standard, but it is upwardly compatable with the standard,
and they might try to press for it for the next version of the standard.
--
Sean Eric Fagan | "I made the universe, but please don't blame me for it;
sef at kithrup.COM | I had a bellyache at the time."
-----------------+ -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.
More information about the Comp.std.c
mailing list