atexit
register a function to call at program termination
Synopsis
#include <stdlib.h>
int atexit(void (*func)(void));
Description
The
function registers a function to be called at program termina-
atexit
tion. Functions are called once for each time they are registered, in the
reverse order of registration. Up to 32 functions can be registered using
.
atexit
Error Conditions
The
function returns a non-zero value if the function cannot be
atexit
registered.
Example
#include <stdlib.h>
extern void goodbye(void);
if (atexit(goodbye))
exit(1);
See Also
abort,
exit
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
C/C++ Run-Time Library
3-33
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers