🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #74748

Re: using 0 instead of NULL

#74748
From: Jym Dyer
Date: Wed, 06 Mar 1991 16:25
15 lines
1198 bytes
___
 __ I haven't looked at the bison code, and I agree that testing
  _ for 0 instead of NULL is not a good thing.  Note, though,
    that no matter what NULL is defined as, the following C
    statements are equivalent:

	if (something_p != NULL)

	if (something_p)
___
 __ In a system where NULL isn't zero, `something_p' can be
  _ zero and the second "if" statement will evaluate it as
    true.  Unless the ever-emerging ANSI standard for C has
    changed since I last looked at it. :-)
    <_Jym_>
Technical Details
Message-ID: <JYM.91Mar6112521@remarque.berkeley.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!think.com!linus!agate!agate!jym
References: <27D16AC5.3952@maccs.dcss.mcmaster.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,343b7ce3977dbb95
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1991-03-07 03:36:27 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!think.com!linus!agate!agate!jym
From: jym@mica.berkeley.edu (Jym Dyer)
Newsgroups: gnu.misc.discuss
Subject: Re: using 0 instead of NULL
Message-ID: <JYM.91Mar6112521@remarque.berkeley.edu>
Date: 6 Mar 91 16:25:21 GMT
References: <27D16AC5.3952@maccs.dcss.mcmaster.ca>
Sender: usenet@agate.berkeley.edu (USENET Administrator)
Organization: Berserkeley
Lines: 15
In-Reply-To: kevinb@maccs.dcss.mcmaster.ca's message of 3 Mar 91 21:29:40 GMT