Registers a function to be called when the thread terminates normally.
#include <stdlib.h> onexit_t onexit (onexit_t func);
func
Successive calls to onexit create a register of functions that execute in LIFO (last-in, first-out) order. You can register a maximum of 128 functions.
The ANSI-standard atexit does the same thing as onexit; use it instead of onexit when ANSI portability is desired.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h | stdlib.h | clib.lib |