calling main in ANSI C
!Leo Willems
leo at atcmp.nl
Mon Dec 3 00:05:46 AEST 1990
The ARM (the annotated C++ reference manual), section 3.4 states:
"The function main() may not be called from within a program."
I was looking for the same restriction in ANSI C, but could not find
any statement in the ANSI C standard (2.1.2.2.1).
Par. 2.1.2.2.3 (Program termination) states:
"A return from the initial call to the main function...."
The word "initial" suggests (to me) that main() may be called from within the
program.
Is C++ different from ANSI C on this point?
If I didn't read the ANSI C standard careful enough, please mention
the section where I can find the information.
Thanks.
Leo
--
Leo Willems Internet: leo at atcmp.nl
AT Computing UUCP: mcsun!hp4nl!kunivv1!atcmpe!leo
P. O. Box 1428 6501 BK Nijmegen, The Netherlands
Phone: +31-80-566880 Fax: +31-80-555887
More information about the Comp.std.c
mailing list