Xref: utzoo comp.lang.c++:10633 comp.std.c:3986 comp.std.c++:458 Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!uunet!mcsun!hp4nl!sci.kun.nl!atcmpe!leo From: leo@atcmp.nl (!Leo Willems) Newsgroups: comp.lang.c++,comp.std.c,comp.std.c++ Subject: calling main in ANSI C Keywords: main standard Message-ID: <814@atcmpe.atcmp.nl> Date: 2 Dec 90 13:05:46 GMT Organization: AT Computing, Nijmegen, The Netherlands Lines: 25 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@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 Brought to you by Super Global Mega Corp .com