Strange lint mumblings

Jeff Barr jeff at amsdsg.UUCP
Thu Dec 22 02:44:33 AEST 1988


In article <11467 at dartvax.Dartmouth.EDU>, earleh at eleazar.dartmouth.edu (Earle R. Horton) writes:
> In article <416 at marob.MASA.COM> daveh at marob.masa.com (Dave Hammond) writes:
> >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
> 

How about:

	void main ()
	{
	 ...

	 exit (0);
	}

						Jeff
-- 
	 /-------------------------------------------------------\
	/  Jeff Barr   AMS-DSG   uunet!amsdsg!jeff   800-832-8668 \
	\  American Express: "Don't leave $HOME without it".	  /
	 \-------------------------------------------------------/



More information about the Comp.lang.c mailing list