Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!mcnc!uvaarpa!umd5!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.lang.c Subject: Re: macros with parameters in MSC 5.0 Message-ID: <8024@elsie.UUCP> Date: 28 Feb 88 19:23:18 GMT References: <11879@brl-adm.ARPA> <362@sas.UUCP> <364@sas.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 11 Summary: Nope > > #define ctl(c) ('c'&037) > > what is the Right Way to do this? (under dpANS) > > #define ctl(c) ((* #c) & 037)) Not if you plan to use code such as switch (value) { case ctl(a): ... -- ado@vax2.nlm.nih.gov ADO, VAX, and NIH are Ampex and DEC trademarks