Strange lint mumblings
Badri Lokanathan
badri at valhalla.ee.rochester.edu
Wed Dec 28 08:12:15 AEST 1988
In article <599 at micropen>, dave at micropen (David F. Carlson) writes:
> I have solved this "problem" by not using the function exit() to return
> to the calling environment main() status. Rather, use return at the end
> of main(). Lint seems to like return from functions. It never has been
> able to deal with exit() properly, ("statement not reached", etc.) so why
> try?
>
Alas, some of us (at least I) have gotten used to the easy clean up facility
that exit() provides. That is, flushing all I/O buffers and closing
them. return(status) works cleanly if the programmer takes care of
this. I have personally not had this problem with return/exit in lint, so I
shall continue to use exit (maybe I should use egress as PT Barnum once
did :-)
--
"I care about my fellow man {) badri at ee.rochester.edu
Being taken for a ride, //\\ {ames,cmcl2,columbia,cornell,
I care that things start changing ///\\\ garp,harvard,ll-xn,rutgers}!
But there's no one on my side."-UB40 _||_ rochester!ur-valhalla!badri
More information about the Comp.lang.c
mailing list