Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys



> 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@localhost



Home | Main Index | Thread Index | Old Index