7.20.4.2 The atexit function

Synopsis

1

#include <stdlib.h>
int atexit(void (*func)(void));

Description

2

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

Environmental limits

3

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

Returns

4

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

Forward References