Difference between revisions of "cpp/utility/program"
From cppreference.com
(→Signals: formatting) |
(→Program termination: formatted) |
||
Line 6: | Line 6: | ||
{{dcl list begin}} | {{dcl list begin}} | ||
− | |||
{{dcl list header | cstdlib}} | {{dcl list header | cstdlib}} | ||
{{dcl list template | cpp/utility/program/dcl list abort}} | {{dcl list template | cpp/utility/program/dcl list abort}} | ||
Line 15: | Line 14: | ||
{{dcl list template | cpp/utility/program/dcl list at_quick_exit}} | {{dcl list template | cpp/utility/program/dcl list at_quick_exit}} | ||
− | {{dcl list | + | {{dcl list h2 | Execution outcome indicators}} |
{{dcl list template | cpp/utility/program/dcl list EXIT_SUCCESS}} | {{dcl list template | cpp/utility/program/dcl list EXIT_SUCCESS}} | ||
{{dcl list template | cpp/utility/program/dcl list EXIT_FAILURE}} | {{dcl list template | cpp/utility/program/dcl list EXIT_FAILURE}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | p | ||
==Communicating with the environment== | ==Communicating with the environment== |
Revision as of 06:10, 16 July 2011
Template:cpp/utility/program/sidebar
Contents |
Program termination
The following functions manage program termination and resource cleanup.
Defined in header
<cstdlib> | |
causes abnormal program termination (without cleaning up) (function) | |
causes normal program termination with cleaning up (function) | |
(C++11) |
causes quick program termination without completely cleaning up (function) |
(C++11) |
causes normal program termination without cleaning up (function) |
registers a function to be called on std::exit() invocation (function) | |
(C++11) |
registers a function to be called on std::quick_exit invocation (function) |
Execution outcome indicators |
p
Communicating with the environment
calls the host environment's command processor (function) | |
access to the list of environment variables (function) |
Signals
Several functions and macro constants for signal management are provided.
Defined in header
<csignal> | |
sets a signal handler for particular signal (function) | |
runs the signal handler for particular signal (function) | |
Signal handling strategies | |
return value of signal specifying that an error was encountered (macro constant) | |
Signal types |
Non-local jumps
Types | |
execution context type (typedef) | |
Functions | |
saves the context (function macro) | |
jumps to specified location (function) |