Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: CTRL(x) macro (was: Re: What is a constant expression) Message-ID: <1422@crdos1.crd.ge.COM> Date: 24 Oct 89 17:02:45 GMT References: <1219@crdos1.crd.ge.COM> <8891@goofy.megatest.UUCP> <3786@solo6.cs.vu.nl> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: GE Corp R&D Center Lines: 19 In article <3786@solo6.cs.vu.nl>, maart@cs.vu.nl (Maarten Litmaath) writes: | | #define CTRL(x) ((x) ^ 0100) | | ...so you can say | | CTRL('?') | | to get DEL. You should use another name, perhaps, since many people assume that CTRL returns control characters. They are defined as the values from 00-37 octal, from the action of the Control key on the original Teletype terminals. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon