Currently At: Programming Reference > C Reference > Other standard C functions > atexit()

atexit()


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


Description:
The function atexit() causes the function pointed to by func to be called when the program terminates. You can make multiple calls to atexit() (at least 32, depending on your compiler) and those functions will be called in reverse order of their establishment. The return value of atexit() is zero upon success, and nonzero on failure.

Related Topics:
exit() and abort()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions