C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
atexit, _fatexit, _onexit, _fonexit
 Description Example                     Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Include:   <stdlib.h>
 
  Syntax:    int atexit( void ( __cdecl *func )( void ) );
             int _fatexit( void ( __cdecl __far *func )( void ) );
             _onexit_t _onexit( _onexit_t func );
             _fonexit_t _fonexit( _fonexit_t func );
 
  Returns:   (atexit and _fatexit) 0 if successful; otherwise a
                nonzero value.
             (_onexit and _fonexit) a pointer to <func> if successful;
                otherwise a NULL pointer.
 
  See also:  exit
                                    -♦-