Path: utzoo!attcan!uunet!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!nuug!ifi!enag From: enag@ifi.uio.no (Erik Naggum) Newsgroups: comp.lang.c++ Subject: Re: Can you prototype main() ????? Message-ID: Date: 17 Sep 90 19:00:53 GMT References: <14227.26dc5b2f@max.u.washington.edu> <659@atcmpe.atcmp.nl> Sender: enag@ifi.uio.no (Erik Naggum) Organization: Naggum Software, Oslo, Norway Lines: 22 Nntp-Posting-Host: svarte.ifi.uio.no In-Reply-To: leo@atcmp.nl's message of 17 Sep 90 09:30:56 GMT Originator: enag@svarte.ifi.uio.no Sorry for barging in -- I just started reading this newsgroup. In article <659@atcmpe.atcmp.nl> leo@atcmp.nl (Leo Willems) writes: The annotated C++ ref man (E&S) is very explicit about main, amongst others it states: main() can not be overloaded and its calling conventions are implementation dependent, but two forms are recommended: main() and main(int, *char[]) Isn't also a third parameter, char *envp[], supported, so that the list should read main() main(int, *char[]) main(int, *char[], *char[]) ? -- [Erik Naggum] Naggum Software; Gaustadalleen 21; 0371 OSLO; NORWAY I disclaim, , therefore I post. +47-295-8622, +47-256-7822, (fax) +47-260-4427