Article View: gnu.misc.discuss
Article #74761Re: using 0 instead of NULL
From: Per Bothner
Date: Thu, 07 Mar 1991 20:09
Date: Thu, 07 Mar 1991 20:09
12 lines
1187 bytes
1187 bytes
In article <1991Mar6.201539.17401@Solbourne.COM> imp@Solbourne.COM (Warner Losh) writes: >0 and NULL are the same thing. Essentially. However, ANSI allows NULL to be defined as (void*)0. This allows the compiler to warn about certain kinds of mismatches. Whatever the definition of NULL (0 or 0L or (void*)0), I think it is stylistically a good idea to use NULL rather than 0. This MAY have been what the original poster meant. -- --Per Bothner bothner@cs.wisc.edu Computer Sciences Dept, U. of Wisconsin-Madison
Technical Details
Message-ID:
<1991Mar7.200924.1210@spool.cs.wisc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!usc!rpi!uwm.edu!uwvax!sevenlayer.cs.wisc.edu!bothnerReferences:
<27D16AC5.3952@maccs.dcss.mcmaster.ca> <1991Mar6.201539.17401@Solbourne.COM>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 15:03:04 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!usc!rpi!uwm.edu!uwvax!sevenlayer.cs.wisc.edu!bothner From: bothner@sevenlayer.cs.wisc.edu (Per Bothner) Newsgroups: gnu.misc.discuss Subject: Re: using 0 instead of NULL Message-ID: <1991Mar7.200924.1210@spool.cs.wisc.edu> Date: 7 Mar 91 20:09:24 GMT References: <27D16AC5.3952@maccs.dcss.mcmaster.ca> <1991Mar6.201539.17401@Solbourne.COM> Sender: news@spool.cs.wisc.edu (The News) Organization: U of Wisconsin CS Dept Lines: 12