|Linux / Unix Command: exit|
NAMEexit - cause normal program termination
#include <stdlib.h> void exit(int status);
DESCRIPTIONThe exit() function causes normal program termination and the the value of status & 0377 is returned to the parent (see wait(2)). All functions registered with atexit() and on_exit() are called in the reverse order of their registration, and all open streams are flushed and closed. Files created by tmpfile() are removed.
RETURN VALUEThe exit() function does not return.
CONFORMING TOSVID 3, POSIX, BSD 4.3, ISO 9899 (``ANSI C'')
SEE ALSO_exit(2), wait(2), atexit(3), on_exit(3), tmpfile(3)
Important: Use the man command (% man) to see how a command is used on your particular computer.