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

The atexit( ) function causes the function pointed to by func to be called upon normal program termination. The atexit( ) function returns zero if the function is successfully registered as a termination function and nonzero otherwise.

At least 32 termination functions can be registered, and they will be called in the reverse order of their registration.

Related functions are exit( ) and abort( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: