Subject: Re: Ansi C problems
To: None <conklin@kaleida.com>
From: Arne Henrik Juul <arnej@fm.unit.no>
List: netbsd-bugs
Date: 11/12/1993 22:32:33
 > Date: Fri, 12 Nov 93 12:53:00 PST
 > From: conklin@ngai.kaleida.com (J.T. Conklin)
 > To: richard@cogsci.edinburgh.ac.uk
 > Cc: netbsd-bugs@sun-lamp.cs.berkeley.edu
 > Subject: Ansi C problems
 > 
 > richard> Trying to compile a program that claimed to be in Ansi C
 > richard> under NetBSD 0.9, I came across a couple of problems:
 > 
 > richard> NULL should be defined in stdlib.h, but isn't
 > 
 > Not according to my copy of the C standard.

ISO/IEC 9899:1990, section 7.10, "General utilities <stdlib.h>" (page 149):
"The macros defined are NULL (described in 7.1.6); [...]"

In fact NULL should be defined in all of:
<stddef.h>
<locale.h>
<stdio.h>
<stdlib.h>
<string.h>
<time.h>

I haven't checked these header files in netbsd 0.9-current (sorry).

  - Arne H. Juul
(I've been reading comp.std.c too much :-)

------------------------------------------------------------------------------