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) |
indicates program execution status (macro constant) |
Defined in header <utility> |
|
---|---|
(C++23) | marks unreachable point of execution (function) |
Defined in header <cstdlib> |
|
---|---|
calls the host environment's command processor (function) |
|
access to the list of environment variables (function) |
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) |
|
the integer type that can be accessed as an atomic entity from an asynchronous signal handler (typedef) |
|
defines signal handling strategies (macro constant) |
|
return value of signal specifying that an error was encountered (macro constant) |
|
Signal types |
|
defines signal types (macro constant) |
Defined in header <csetjmp> |
|
---|---|
saves the context (function macro) |
|
jumps to specified location (function) |
|
Types |
|
execution context type (typedef) |
C documentation for Program support utilities |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/program