C++ Programming/Code/Standard C Library/Functions/atexit

atexitEdit
Syntax
#include <cstdlib>
int atexit( void (*func)(void) );

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 non-zero on failure.

Related topics
abort - exit
Last modified on 17 May 2009, at 05:34