Do nil pointers convert to nil pointers?

Chris Torek torek at elf.ee.lbl.gov
Thu Mar 21 07:38:35 AEST 1991


In article <1991Mar20.174710.4405 at zoo.toronto.edu> henry at zoo.toronto.edu
(Henry Spencer) writes:
>(Point of terminology:  there is no such thing as "nil" in C.  You are
>talking about null pointers.)

True---but I sometimes advocate using `nil pointer' as a circumloction
for `null pointer of type T', simply because the very absence of the
`nil' keyword guarantees that you have to change *something*, whereas
if you say `a null pointer' it is not at all clear that you might have
to code something other than just `NULL'.

But alas, the new BSD man pages are going to continue to talk blithely
about `NULL' as if the compiler worked magic.  Fortunately, in this case
all the new man pages will say

	#include <foo.h>

and <foo.h> will contain all the necessary prototypes, so if you follow
the man page, you will have a prototype in scope, and the compiler *will*
work magic....
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.lang.c mailing list