Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!usc!elroy.jpl.nasa.gov!cit-vax!wen-king From: wen-king@cit-vax.Caltech.Edu (King Su) Newsgroups: comp.lang.c Subject: Re: use of if (!cptr) and if (cptr), where cptr is a * Keywords: * != int Message-ID: <11310@cit-vax.Caltech.Edu> Date: 19 Jul 89 03:48:00 GMT References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> Reply-To: wen-king@cit-vax.UUCP (Wen-King Su) Organization: California Institute of Technology Lines: 18 In article <93@microsoft.UUCP> paulc@microsoft.UUCP (Paul Canniff 2/1011) writes: erik@mpx2.mpx.com (Erik Murrey) writes: >>Would (!sptr) break anywhere? Should it be discouraged? < >It will break if NULL != 0. This is rare in my experience. In fact >This was from a *style* guide? Yeah I suppose it works, though I am evaluation. I seldom use it. Why do you bother to post anyway? The (!sptr) will never break and the comma operator do guarantee the order of evaluation. -- /*------------------------------------------------------------------------*\ | Wen-King Su wen-king@vlsi.caltech.edu Caltech Corp of Cosmic Engineers | \*------------------------------------------------------------------------*/