C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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
                                    -♦-