use of NULL

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Feb 4 16:49:13 AEST 1989


In article <1340 at uwbull.uwbln.UUCP> ckl at uwbln.UUCP (Christoph Kuenkel) writes:
>Why at all should I ever use NULL anywhere?

Some think that use of a mnemonic makes the code more intelligible.
If C were being designed now, I would recommend that "nil" be made
a language keyword.

>its much more obvious to write 0,  when I mean zero,  ((char *) 0) when
>I mean a zero character pointer, etc. etc.

Using 0 instead of NULL is perfectly acceptable.



More information about the Comp.lang.c mailing list