CTRL(x)
Col. G. L. Sicherman
colonel at sunybcs.UUCP
Sat Nov 1 02:41:58 AEST 1986
) >But. . .is there a way to write an ANSI cpp version of
) > #define CTRL(c)
)
) I don't have an ANSI cpp handy (does anybody?), so I can't test
) this, but how about using the ANSI invention of # for "string-izing":
) #define CTRL(c) (#c[0] & 037)
Not everybody has it. What's wrong with this old trick?
#define Q "
#define CTRL(z) (Q z "[1]^0100)
--
Col. G. L. Sicherman
UU: ...{rocksvax|decvax}!sunybcs!colonel
CS: colonel at buffalo-cs
BI: colonel at sunybcs, csdsiche at sunyabvc
More information about the Comp.lang.c
mailing list