Unix Technical Forum

Re: return or exit at end of main()?

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 07:49 AM
Ted Unangst
 
Posts: n/a
Default Re: return or exit at end of main()?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com