Preprocessor macro to quote its argument
Peter da Silva
peter at ficc.ferranti.com
Sun Aug 26 13:31:41 AEST 1990
In article <3891 at bingvaxu.cc.binghamton.edu> vu0310 at bingvaxu.cc.binghamton.edu.cc.binghamton.edu (R. Kym Horsell) writes:
> #define CTRL(c) ((*#c)&037)
If you define CTRL(c) ((*#c)^('\177'^'?')) it'll handle '^?' for delete as
well, at the expense of producing gibberish for CTRL(a).
--
Peter da Silva. `-_-'
+1 713 274 5180. 'U`
peter at ferranti.com
More information about the Comp.lang.c
mailing list