Article View: comp.std.c
Article #4662Re: atexit() and return from main()
From: Clive D.W. Feather
Date: Wed, 17 Jan 1996 18:41
Date: Wed, 17 Jan 1996 18:41
16 lines
1148 bytes
1148 bytes
In article <4dhfja$j50@fg70.rz.uni-karlsruhe.de>, Thomas Koenig <Thomas.Koenig@ciw.uni-karlsruhe.de> wrote: > Is the following valid C? [...] > 6.1.2.4 tells me it isn't, but 5.1.2.2.3 tells me that a return from the > initial call to main() is equivalent to an exit(), and I don't see a problem > when I replace the 'return 0' above with an 'exit(0)'. See the "brief summary of TC2" thread. The "equivalent" has been amended by "except that main's local variables are available in the latter case and not the former". -- Clive D.W. Feather | If you lie to the compiler, clive@demon.net (work, preferred) | it will get its revenge. clive@stdc.demon.co.uk (home) | - Henry Spencer
Technical Details
Message-ID:
<DLC99u.8A2@stdc.demon.co.uk>Path:
arc1-ca.pugleaf.net!stdc.demon.co.uk!cliveReferences:
<4dhfja$j50@fg70.rz.uni-karlsruhe.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive From: clive@stdc.demon.co.uk (Clive D.W. Feather) Newsgroups: comp.std.c Subject: Re: atexit() and return from main() Date: Wed, 17 Jan 1996 18:41:52 GMT Organization: Demon Internet Limited (personal account) Message-ID: <DLC99u.8A2@stdc.demon.co.uk> References: <4dhfja$j50@fg70.rz.uni-karlsruhe.de> Reply-To: clive@demon.net X-NNTP-Posting-Host: stdc.demon.co.uk