D
Dan Pop
In said:Wojtek Lerch wrote:
...
That's not correct - such a re-write would not handle correctly calls to
main() frome within user code (which are legal). It's more accurate to
say that the initial call to main() is essentially equivalent to
exit(main(argc,argv));
ONLY if main is defined as returning a type compatible with int.
In which case, the C99 compiler must insert a return 0; statement at the
very end of main, if the program execution could reach its terminating }.
Dan