Subject: Re: CVS commit: src/sys/sys
To: <>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 10/21/2003 09:46:26
> Modified Files:
> src/sys/sys: null.h
>
> Log Message:
> Define NULL as (void *)0, unless C++ is being used.
I don't believe that is valid portable C.
Although off hand I dont know the counter example.
What about the comparison of function pointers?
I just remember reading somewhere that the only valid
definition for NULL is 0.
Personally I'd use 0 throughout (and if ([!]pointer)...).
David
--
David Laight: david@l8s.co.uk