Subject: Re: main return...
To: None <current-users@NetBSD.ORG>
From: Alan Barrett <apb@iafrica.com>
List: current-users
Date: 03/26/1996 11:03:48
> No, there are *not* cases in which it is all right; it is invalid
> standard C [...]

Everything Peter Seebach said about the ANSI/ISO C standard and the
main() function is true, except that he omitted to mention that the
rules about main() apply only in a "hosted environment" (which I think
NetBSD attempts to provide) [see ANSI/ISO 9899-1990 section 5.1.2.2.1],
not in a "freestanding environment" (in which C program execution may
take place without any benefit of an operating system) [see section
5.1.2.1].

--apb (Alan Barrett)