> Nope, returning from main is defined by the C standard to be equivalent
> to calling exit(), as if main() where invoked as `exit(main(argc, argv))'.
Well, it might be standardized, but I've been bitten by implementations
that generate a random exit code if you just return 0 from main.
This was quite a few years ago now, so things have probably changed.
-- Lennart
- how about main :: IO Int Christian Sievers
- Re: how about main :: IO Int Kevin Hammond
- Re: how about main :: IO Int Thomas Hallgren
- RE: how about main :: IO Int R.S. Nikhil
- Re: RE: how about main :: IO Int Lennart Augustsson
- Re: how about main :: IO Int Lennart Augustsson
- Re: how about main :: IO Int Christian Sievers
- Re: how about main :: IO Int Fergus Henderson
