Synopsis
void OMadd_exit_func(
void (*func) (void *),
void *arg);
Description
OMadd_exit_func adds a callback function to be called when the process exits. The functions added with this mechanism are called in the reverse order in which they are added.
Arguments
func
A pointer to a void function that is called with a single void * argument.
arg
A void * argument that is passed to the func argument when the process exits.