This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: 0 vs NULL - a note
- From: Robert Collins <robert dot collins at itdomain dot com dot au>
- To: cygwin-apps at cygwin dot com
- Date: 28 Nov 2001 18:44:33 +1100
- Subject: Re: 0 vs NULL - a note
- References: <20011127230925.GA5830@redhat.com><000001c1779c$e1fe2fa0$2101a8c0@NOMAD> <20011127235226.GA6537@redhat.com><1006906033.2048.23.camel@lifelesswks> <20011128002122.GA6919@redhat.com><1006907495.2048.25.camel@lifelesswks> <20011128005414.GA7118@redhat.com><1006910727.637.0.camel@lifelesswks> <1006912722.712.2.camel@lifelesswks> <20011128081627.W14975@cygbert.vinschen.de>
On Wed, 2001-11-28 at 18:16, Corinna Vinschen wrote:
> And another note:
>
> if (ptr)
>
> and
>
> if (!ptr)
>
> avoid all confusion about 0 vs. NULL.
>
Not quite, it only solves for comparisons, not for
assignment/initialisation.
Rob