Strange lint mumblings
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue Dec 27 14:59:48 AEST 1988
In article <179 at amsdsg.UUCP> jeff at amsdsg.UUCP (Jeff Barr) writes:
>How about:
> void main ()
> {
> ...
Don't do this! Declare your types properly! Whatever is calling
main() is expecting it to have a certain "shape" (that of a function
with two arguments and returning an int); ANSI C requires that the
compiler be able to compensate for the arguments being omitted, but
not for the return type being garbled.
More information about the Comp.lang.c
mailing list