Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
at_quick_exit - register function to run at process termination
&pagelevel(4)&pagelevel
Syntax | #include <stdlib.h> int at_quick_exit(void (*funct) (void)); (C11) |
Description | at_quick_exit is used to register a function funct that is to be executed without arguments when the program terminates by calling quick_exit .
|
Return val. | 0 != 0
| if the function is registered successfully. if an error occurs. |
Notes | at_quick_exit() registers a function funct to be called without arguments at quick process termination.
The registered functions are called in the reverse order to that in which they were registered. Functions for which multiple registrations exist are called more than once. Functions registered with at_quick_exit are called only if the process is terminated by an explicit quick_exit call. Up to 40 functions can be registered. |
See also | atexit, exit, quick_exit. stdlib.h |