Subject: NULL return value checking
To: None <>
From: Matthew Mondor <>
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?


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

instead of

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

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