This is a discussion on Re: return or exit at end of main()? within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On Thu, 12 May 2005, Tobias Stoeckmann wrote: > In "The Open Group Base Specifications Issue 6" it is ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Thu, 12 May 2005, Tobias Stoeckmann wrote: > In "The Open Group Base Specifications Issue 6" it is written, that exit > at the end of main should act like return. > (http://www.opengroup.org/onlinepubs/...ions/exit.html) note the key phrase "other than with respect to language scope issues", which doesn't matter a whole with C, but can make a world of difference in C++. Probably poor style if it does, but return would be the right thing to use. -- someone's writing down your mistakes someone's documenting your downfall |
| Thread Tools | |
| Display Modes | |
|
|