Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: Preprocessor macro to quote its argument Message-ID: Date: 26 Aug 90 03:31:41 GMT References: <1112@mti.mti.com> <1114@mti.mti.com> <1990Aug20.012839.3545@zoo.toronto.edu> <11517@ogicse.ogi.edu> <1990Aug21.175138.24633@zoo.toronto.edu> <21594@grebyn.com> <3891@bingvaxu.cc.binghamton.edu> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 5 In article <3891@bingvaxu.cc.binghamton.edu> vu0310@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@ferranti.com