Microport Unix -- Large Model Problems
    Garry Wiegand 
    garry at batcomputer.TN.CORNELL.EDU
       
    Tue Nov  4 15:53:14 AEST 1986
    
    
  
In a recent article campbell at maynard.UUCP (Larry Campbell) wrote:
>I wonder why stdio.h doesn't just declare NULL as "(char *) 0", or,
>in the brave new world of ANSI X-whatever, "(void *) 0"?  This should
>do all the right things.
To get *all* the right things, we use:
	#ifdef	lint
	#   define	null	0
	#else
	#   define	null	(char *)0
	#endif
since lint doesn't understand that comparing an (int *) variable with a
(char *)0 is legitimate.
garry wiegand   (garry%cadif-oak at cu-arpa.cs.cornell.edu)
    
    
More information about the Comp.unix.wizards
mailing list