NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | NOTES | ATTRIBUTES | SEE ALSO
$(NUCLEUS_DIR)/lib/classix/libsys.s.a #include <stdlib.h>int atexit(void (*func)void);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
Calling atexit() adds the func() function to a list of functions to be called, without argument, on normal termination of the program. Normal termination occurs either by a call to exit(3STDC) or by a return from main.
The atexit() function returns 0 if the registration succeeded, non-zero if it failed.
atexit() is reentrant. The related exit(3STDC) processing requires special attention with regard to concurrent execution.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | NOTES | ATTRIBUTES | SEE ALSO