Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!garry From: garry@batcomputer.TN.CORNELL.EDU (Garry Wiegand) Newsgroups: net.unix-wizards Subject: Re: Microport Unix -- Large Model Problems Message-ID: <1376@batcomputer.TN.CORNELL.EDU> Date: Tue, 4-Nov-86 00:53:14 EST Article-I.D.: batcompu.1376 Posted: Tue Nov 4 00:53:14 1986 Date-Received: Tue, 4-Nov-86 19:47:23 EST Reply-To: garry%cadif-oak@cu-arpa.cs.cornell.edu Organization: Cornell Engineering && Flying Moose Graphics Lines: 17 In a recent article campbell@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@cu-arpa.cs.cornell.edu)