The nonexistent operator (along = v. == lines)

Doug Gwyn gwyn at smoke.brl.mil
Fri Apr 5 03:52:41 AEST 1991


In article <1991Apr3.203748.3226 at neon.Stanford.EDU> dkeisen at 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".



More information about the Comp.lang.c mailing list