Home > Electronics Tutorials > C Language Tutorial > stdlib.h - Environment Functions - atexit

C Language Programming Library Reference Guide

stdlib.h - Environment Functions - atexit

Declaration: int atexit(void (*func)(void)); Causes the specified function to be called when the program terminates normally. At least 32 functions can be registered to be called when the program terminates. They are called in a last-in, first-out basis (the last function registered is called first).

On success zero is returned. On failure a nonzero value is returned.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster