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