🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #74754

Re: using 0 instead of NULL

#74754
From: Warner Losh
Date: Wed, 06 Mar 1991 20:17
11 lines
1015 bytes
In article <JYM.91Mar6112521@remarque.berkeley.edu> jym@mica.berkeley.edu (Jym Dyer) writes:
> __ In a system where NULL isn't zero,

NULL is always 0.  Tests of pointers against 0 are always required to
succeed if those pointers are NULL.  The actual bits that are used may
or may not be 0, but NULL is always 0 (perhaps with a cast on it).

Warner
-- 
Warner Losh		imp@Solbourne.COM
We sing about Beauty and we sing about Truth at $10,000 a show.
Technical Details
Message-ID: <1991Mar6.201722.17499@Solbourne.COM>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stan!imp
References: <27D16AC5.3952@maccs.dcss.mcmaster.ca> <JYM.91Mar6112521@remarque.berkeley.edu>

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 04:20:18 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stan!imp
From: imp@Solbourne.COM (Warner Losh)
Newsgroups: gnu.misc.discuss
Subject: Re: using 0 instead of NULL
Message-ID: <1991Mar6.201722.17499@Solbourne.COM>
Date: 6 Mar 91 20:17:22 GMT
References: <27D16AC5.3952@maccs.dcss.mcmaster.ca> <JYM.91Mar6112521@remarque.berkeley.edu>
Organization: Solbourne Computer, Inc., Longmont, CO
Lines: 11