Strange lint mumblings

Dave Hammond daveh at marob.MASA.COM
Wed Dec 14 03:00:06 AEST 1988


Can anyone explain why the statement:

    exit(0);	/* followed immediately by main's closing brace */

causes lint to complain:

ma-main.c
==============
(137)  warning: main() returns random value to invocation environment


[yes, "exit(0)" is the statement on line 137 of the file ma-main.c]

--
Dave Hammond
  UUCP: uunet!masa.com!{dsix2,marob}!daveh
DOMAIN: dsix2!daveh at masa.com



More information about the Comp.lang.c mailing list