The atexit function

Name

atexit -- 

Synopsis

#include <stdlib.h>

void atexit (void (*func)(void) );

Description

The atexit function registers the function pointed to by func, to be called without arguments at normal program termination.

Implementation Limits

The implementation shall support the registration of at least 32 functions.

Returns

The atexit function returns zero if the registration succeeds, nonzero if it fails.

Implementation Notes

The XGC library supports 32 registrations.