INtime SDK Help
exit, _exit

Exit terminates the calling process after cleanup and _exit terminates it immediately.

#include <process.h>  /* for _exit */
#include <stdlib.h>

void exit (int status);

void _exit (int status);

Parameters

status
Exit status.

Remarks

Exit performs complete C library termination procedures. It calls the functions registered by atexit and onexit in LIFO order. It flushes all file buffers before terminating the process and exits with the supplied status code.

_exit performs quick C library termination procedures by invoking ExitRtProcess. Typically, it sets status to 0 to indicate a normal exit or to some other value to indicate an error.

_exit does not process atexit or onexit, or flush stream buffers.

Return Values

None.

Requirements

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

See Also

abort, atexit, onexit, ExitRtProcess