Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: The nonexistent operator (along = v. == lines) Message-ID: <15704@smoke.brl.mil> Date: 4 Apr 91 17:52:41 GMT References: <156@revcan.UUCP> <157@revcan.UUCP> <1991Apr3.203748.3226@neon.Stanford.EDU> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <1991Apr3.203748.3226@neon.Stanford.EDU> dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) writes: >#define XOR(a,b) (!!(a) ^ !!(b)) or even #define XOR(a,b) (!(a)^!(b)) which is, I think, the shortest fully correct solution to this rather peculiar "requirement".