Strange lint mumblings

Karl Heuer karl at haddock.ima.isc.com
Fri Dec 23 07:33:54 AEST 1988


In article <179 at amsdsg.UUCP> jeff at amsdsg.UUCP (Jeff Barr) writes:
>> >(137)  warning: main() returns random value to invocation environment
>How about:
>	void main () { ... exit (0); }

(a)  It doesn't work, at least on the machine I tried.
(b)  According to the dpANS, the type of `main' must be either `int(void)' or
`int(int, char **)'.  A `void' declaration, although logically correct, cannot
be used in a strictly conforming program.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list