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, 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


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