Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!boulder!tramp!swarbric
From: swarbric@tramp.Colorado.EDU (Frank Swarbrick)
Newsgroups: comp.lang.c
Subject: Re: Let's define our own NULL II
Message-ID: <6821@sigi.Colorado.EDU>
Date: 24 Jun 88 05:38:59 GMT
References: <162@navtech.uucp>
Sender: news@sigi.Colorado.EDU
Reply-To: swarbric@tramp.Colorado.EDU (Frank Swarbrick)
Organization: Beautiful Boulder By The Bay
Lines: 11

Someone already pointed out that ANSI has NULL defined in stddef.h.  In Turbo C
1.5 it is in both stdio.h and stddef.h.  If I only need NULL I just include
stddef.h.  All that Turbo C's stddef does is typedefs size_t and ptrdiff_t,
defines NULL (as 0 or 0L, depending on memory model) and declares errno as an
external variable.

Sounds quite reasonable to me.  It's only 40 lines, and most of that is
preprocessing stuff.

Frank Swarbrick (and, yes, the net.cat)           swarbric@tramp.Colorado.EDU
...!{ncar|nbires}!boulder!tramp!swarbric
"And Jesus -- he wants to go to Venus."