HP 3000 Manuals

atexit [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

atexit 

Specifies a function to call when a program terminates.

Syntax 

     #include <stdlib.h>
     int atexit (void (*func) (void));

Parameters 

func          A pointer to a function to be registered.

Return Values 

 0            The function is successfully registered.

!=0           An error occurred.

Description 

The atexit function registers a function pointed to by func that will be
called at normal program termination.  The function is called without
arguments.  Up to 32 functions can be registered.

See Also 

exit(), ANSI C 4.10.4.2



MPE/iX 5.0 Documentation