Please use NULL instead of 0 whenever you have a pointer!

Dan Sahlin dan at ttds.UUCP
Fri Jan 13 08:10:31 AEST 1984


<blank line>

Someone claimed that NULL was exactly the same as 0.
This is however not true of you have a compiler with 16 bit integers,
and 32 bit addresses.
I have spent a lot of time "debugging" programs that implicitly assume
that pointers and integers have the same length.

Dan Sahlin    (..mcvax!enea!ttds!dan)



More information about the Comp.bugs.4bsd.ucb-fixes mailing list