Thursday, August 26, 2010

atexit() Function

Functions registered by atexit() are executed in reverse order when a program ends.

If exit() is called, these functions are still called.

If abort() is called, these functions are not called.

Reference: The C++ Standard Library by Nicolai M. Josuttis. Addison-Wesley, 1999, p. 71.

No comments:

Post a Comment