Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!ppcnet!ppcger!Sepp From: Sepp@ppcger.ppc.sub.org (Josef Wolf) Newsgroups: comp.lang.c Subject: Re: The nonexistent operator (along = v. == lines) Message-ID: Distribution: world Date: 6 Apr 91 00:19:02 GMT References: <156@revcan.UUCP> Keywords: xor Lines: 15 darren@revcan.UUCP (Darren Morbey) writes: ] 1. #define XOR(a,b) ( ( !(a) && (b) ) || ( (a) && !(b) ) ) ] 2. #define XOR(a,b) ( !(a) != !(b) ) ] 3. #define XOR(a,b) ( (a) ? !(b) : (b) ) /* my favourite. */ Waht about #define XOR(a,b) (a) != (b) /* just a suggestion */ Greets Sepp | Josef Wolf, Germersheim, Germany | +49 7274 8047 -24 Hours- (call me :-) | ...!ira.uka.de!smurf!ppcger!sepp | +49 7274 8048 -24 Hours- | sepp@ppcger.ppc.sub.org | +49 7274 8967 18:00-8:00, Sa + Su 24h | "is there anybody out there?" | all lines 300/1200/2400 bps 8n1