Date: Tue, 18 Dec 2001 09:38:02 -0700 From: Warner Losh <imp@harmony.village.org> To: Mark Murray <mark@grondar.za> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: Are prototypes for main() illegal by any standard ? (was Re: Message-ID: <200112181638.fBIGc2M89699@harmony.village.org> In-Reply-To: Your message of "Tue, 18 Dec 2001 10:48:56 %2B0200." <200112180848.fBI8mvO00685@grimreaper.grondar.org> References: <200112180848.fBI8mvO00685@grimreaper.grondar.org> <XFMail.011216160443.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200112180848.fBI8mvO00685@grimreaper.grondar.org> Mark Murray writes: : AFAIK, this is perfectly legal C: : : /* begin */ : void printf(char *, ...) : : void main(void) : { : printf("Hello world"); : } : /* end */ Please see secont 5.1.2.2.1 of the c99 standard for why this isn't valid in a hosted enviornment. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112181638.fBIGc2M89699>