This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 0 vs NULL - a note


On Wed, Nov 28, 2001 at 12:58:41PM +1100, Robert Collins wrote:
> This is simply a FYI for those interested.
> 
> http://www.multimania.com/pierret/cpp212.htm
> may precende the standard ratification as it still tests for new
> returning 0. It makes an excellent point about NULL vs 0 in assignments.
> 
> Anyway, for clarity: Both 0 and NULL are acceptable in setup.exe. 

And another note:

	if (ptr)

and

	if (!ptr)

avoid all confusion about 0 vs. NULL.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]