Subject: Re: main return...
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: current-users
Date: 03/28/1996 07:05:45
> IMNSHO a UNIX(like) compiler should prototype main() and exit with an
> error if that prototype is violated.

It can't be quite that simple, since there are _two_ allowed types for
main.  (Specifically, int (*)(void) and int (*)(int, char **).)  Thus,
no single prototype can be correct; it would have to be special-cased.

I wouldn't mind getting a warning if main had any type other than one
of those two.  (Though the warning should probably be suppressable, for
kernel builds and other non-hosted environments.)

					der Mouse