Must main return a value?
Lloyd Kremer
kremer at cs.odu.edu
Fri Jun 28 22:55:05 AEST 1991
In article <1991Jun28.043342.27540 at ptcburp.ptcbu.oz.au> michi at ptcburp.ptcbu.oz.au (Michael Henning) writes:
>If you want to be paranoid, you can write
>
>int main(void)
>{
> exit(0);
> return 0; /* Keep lint happy */
>}
int main(void)
{
exit(0);
/*NOTREACHED*/ /* Keeps most lints happy without extra code */
}
Lloyd Kremer
Hilton Systems, Inc.
kremer at cs.odu.edu
More information about the Comp.std.c
mailing list