Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: CTRL(x) macro (was: Re: What is a constant expression) Message-ID: <3786@solo6.cs.vu.nl> Date: 23 Oct 89 18:19:35 GMT References: <1219@crdos1.crd.ge.COM> <8891@goofy.megatest.UUCP> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 16 djones@megatest.UUCP (Dave Jones) writes: \... \#define CNTL(c) ((c) & 037) I prefer: #define CTRL(x) ((x) ^ 0100) ...so you can say CTRL('?') to get DEL. -- A symbolic link is a POINTER to a file, | Maarten Litmaath @ VU Amsterdam: a hard link is the file system's GOTO. | maart@cs.vu.nl, mcsun!botter!maart