Defined in header
int at_quick_exit( void (*func)(void) );
Registers the function pointed to by
func to be called on quick program termination (via quick_exit).
Calling the function from several threads does not induce a data race. The implementation is guaranteed to support the registration of at least 32 functions. The exact limit is implementation-defined.
|func||-||pointer to a function to be called on quick program termination|
 Return value
0 if the registration succeeds, nonzero value otherwise.
pushed second pushed first
- C17 standard (ISO/IEC 9899:2018):
- 184.108.40.206 The at_quick_exit function (p: 255)
- C11 standard (ISO/IEC 9899:2011):
- 220.127.116.11 The at_quick_exit function (p: 351)
 See also
| causes abnormal program termination (without cleaning up) |
| causes normal program termination with cleaning up |
| registers a function to be called on exit() invocation |
| causes normal program termination without completely cleaning up |
C++ documentation for at_quick_exit