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);
status
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.
None.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h | process.h stdlib.h |
clib.lib |