use of NULL

Wietse Z. Venema wietse at wzv.UUCP
Fri Feb 24 06:57:58 AEST 1989


In article <973 at optilink.UUCP> cramer at optilink.UUCP (Clayton Cramer) writes:
>
>Never pass bare 0 as a pointer argument -- but use the stdio.h
>definition of NULL, and the segmented architecture will NOT screw
>you.  
>

Wrong.  Think of the middle memory model of microsoft c where
sizeof(data pointer) != sizeof(function pointer).  One should 
NEVER rely on a universal representation of null pointers.  
As written in a recent article, NULL is a mistake.
-- 
work:	wswietse at eutrc3.uucp	| Eindhoven University of Technology
work:	wswietse at heitue5.bitnet	| Mathematics and Computing Science
home:	wietse at wzv.uucp		| 5600 MB Eindhoven, The Netherlands



More information about the Comp.lang.c mailing list