Path: utzoo!attcan!uunet!husc6!mailrus!uflorida!novavax!proxftl!twwells!bill From: bill@twwells.uucp (T. William Wells) Newsgroups: comp.lang.c Subject: Re: Question about int result of relational operator Message-ID: <148@twwells.uucp> Date: 6 Nov 88 04:22:38 GMT References: <787@gtx.com> <7482@ihlpl.ATT.COM> Reply-To: bill@twwells.UUCP (T. William Wells) Distribution: na Organization: None, Ft. Lauderdale Lines: 13 Summary: Expires: Sender: Followup-To: Keywords: In article <7482@ihlpl.ATT.COM> knudsen@ihlpl.ATT.COM (Knudsen) writes: : Also be very wary of functions whose result is often treated as : Boolean, but is really integer or pointer so that "true" returns : as anything nonzero. "Cast" these into Boolean if needed by : !!fcn(...) Clearer, and likely to generate better code, is: fcn != 0 --- Bill {uunet|novavax}!proxftl!twwells!bill