INtime SDK Help
atexit

Processes the specified function when the calling process terminates normally.

#include <stdlib.h>

int atexit (void (*func) (void));

Parameters

func
Function(s) to be called; the called function(s) cannot take parameters. No more than 128 functions can be registered. Atexit receives the function address when the thread terminates normally, using exit.

Remarks

Successive calls to atexit create a register of functions that execute in LIFO (last-in-first-out) order.

Return Values

0 (zero)
Success.
Any other value. Error occurred, such as 128 exit functions already defined.
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdlib.h stdlib.h clib.lib
See Also