atexit function in C/C++, you should know
The atexit function registers the function pointed to by func and this registered function called without arguments when the program terminates normally. In case of more than one atexit function, the registered functions are called in the reverse order of their registration (i.e. the last function specified is the first to be executed at exit). […]
atexit function in C/C++, you should know Read More »