Date: Wed, 19 Dec 2001 11:56:40 +0200 From: Mark Murray <mark@grondar.za> To: babkin@freebsd.org Cc: cvs-all@freebsd.org, cvs-committers@freebsd.org Subject: Re: Are prototypes for main() illegal by any standard ? (was Re: Message-ID: <200112190956.fBJ9ufO79815@grimreaper.grondar.org> In-Reply-To: <3C1FEEA9.EEE89A7@bellatlantic.net> ; from Sergey Babkin <babkin@bellatlantic.net> "Tue, 18 Dec 2001 20:34:33 EST." References: <3C1FEEA9.EEE89A7@bellatlantic.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > And it should compile warning-free and run without error. Agreed > > that the style sucks, but it is _legal_ - and any compiler's prior > > No, it's completely wrong. The return type of main() is int. > Otherwise you get garbage for the exit code. Like I said, the style sucks, but I may not _care_ abiut the exit code. I may want the exit code for entropy :-). Etc.. M -- o Mark Murray \_ FreeBSD Services Limited O.\_ Warning: this .sig is umop ap!sdn 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?200112190956.fBJ9ufO79815>