Namespaces
Variants

std::_Exit

From cppreference.com
Revision as of 20:55, 11 June 2011 by P12 (talk | contribs) (Created page with "{{cpp/title| _Exit}} {{cpp/utility/program/sidebar}} {{ddcl | header=cstdlib | notes={{mark c++0x feature}} | void _Exit( int exit_code ); }} Causes normal program termination t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/utility/program/sidebar

Defined in header <cstdlib>
void _Exit( int exit_code );
Template:mark c++0x feature

Causes normal program termination to occur without completely cleaning the resources.

Destructors of variables with automatic, thread local and static storage durations are not called. Functions passed to at_quick_exit() or atexit() are not called. Whether open resources such as files are closed is implementation defined. If exit_code is EXIT_FAILURE, an implementation-defined status, indicating unsuccessful termination, is returned. In other cases implementation-defined status value is returned.

Template:params

exit_code - exit status of the program

Template:returns Template:return none

Template:example cpp

Template:see also

causes abnormal program termination (without cleaning up)
(function) [edit]
causes normal program termination with cleaning up
(function) [edit]