Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!twwells!bill From: bill@twwells.uucp (T. William Wells) Newsgroups: comp.lang.c Subject: Re: Definition of boolean type Message-ID: <380@twwells.uucp> Date: 13 Feb 89 14:35:54 GMT References: <10@dbase.UUCP> <9609@smoke.BRL.MIL> <3645@arcturus> <15906@mimsy.UUCP> <27989@ucbvax.BERKELEY.EDU> <2113@buengc.BU.EDU> Reply-To: bill@twwells.UUCP (T. William Wells) Organization: None, Ft. Lauderdale Lines: 15 Summary: Expires: Sender: Followup-To: Distribution: Keywords: In article <2113@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: : boolfoo = !!expr_returning_funny_bools; : : which, according to my KnR, should never ever give any boolfoo other : than 0 or 1, even if the expr has a dozen different values for true. It'll work, but try boolfoo = expr_returning_funny_bools != 0; It's clearer. --- Bill { uunet!proxftl | novavax } !twwells!bill