Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!smoke!rbj@icst-cmr From: rbj@icst-cmr (Root Boy Jim) Newsgroups: net.lang.c Subject: Re: Boolean Operators Slighted in C Message-ID: <881@brl-smoke.ARPA> Date: Thu, 15-May-86 13:27:45 EDT Article-I.D.: brl-smok.881 Posted: Thu May 15 13:27:45 1986 Date-Received: Sun, 25-May-86 11:42:39 EDT Sender: news@brl-smoke.ARPA Lines: 14 XOR can be defined as an (ugly) macro, I believe. #define XOR(a,b) (((a) != 0) != ((b) != 0) /* or if you like small better than readable */ #define XOR(a,b) (!!(a) != !!(b)) -- -bill davidsen /* smaller still */ #define XOR(a,b) (!!(a) == !(b)) (Root Boy) Jim Cottrell "One man gathers what another man spills"