atexit
int atexit (void (*functionCalledAtExit)(void));
Purpose
Registers a function to be called without arguments, when the program terminates normally—either by calling exit or by returning from main. The registered functions are called in reverse order of their registration. Up to 32 functions can be registered using atexit.
Parameters
Input | ||
Name | Type | Description |
functionCalledAtExit | void (*)(void) | Contains a pointer to a function that is called without arguments at normal program termination. |
Return Value
Name | Type | Description |
status | int | Contains the resulting status of the function. 0 indicates success. Nonzero indicates an error. |
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later