Subject: NULL return value checking
To: None <tech-kern@netbsd.org>
From: Matthew Mondor <mmondor@gobot.ca>
List: tech-kern
Date: 04/21/2002 21:48:23
Is there real relevance to checking NULL return values against NULL itself, rather than simply using a boolean operation check?

eg:

if( (ptr = malloc(size)) !=NULL) {

instead of

if( (ptr = malloc(size)) ) {

Because isn't NULL defined in <sys/types.h>, to 0L ?

Thanks