0 vs NULL - a note
Corinna Vinschen
vinschen@redhat.com
Fri Nov 16 07:12:00 GMT 2001
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.
More information about the Cygwin-apps
mailing list