Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!njin!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsm!kenny
From: kenny@uiucdcsm.UUCP
Newsgroups: comp.lang.c
Subject: Re: Let's define our own NULL
Message-ID: <4700013@uiucdcsm>
Date: 23 Jun 88 16:52:00 GMT
References: <160@navtech.uucp>
Lines: 19
Nf-ID: #R:navtech.uucp:160:uiucdcsm:4700013:000:729
Nf-From: uiucdcsm.cs.uiuc.edu!kenny    Jun 23 11:52:00 1988


/* Written  1:55 pm  Jun 22, 1988 by mark@navtech.uucp in uiucdcsm:comp.lang.c */
/* ---------- "Let's define our own NULL" ---------- */
		#ifndef NULL
		#define NULL	0
		#endif

	That way, if someone needs NULL but doesn't need to use the standard
	I/O library, he won't need to pull in ."

/* End of text from uiucdcsm:comp.lang.c */

The ANSI C committee recognized that things like NULL are not part of
`standard I/O', and moved NULL to , instead of .
ptrdiff_t and size_t are there, too.

This solution preserves the advantage of having it in a standard
header file, so the user doesn't redefine it wrongly, but removes the
temptation to `just define it myself since I don't need standard I/O.'