|EXIT(3)||Library Functions Manual||EXIT(3)|
exit — perform
normal program termination
exit() terminates a process. The
EXIT_FAILURE can be used to indicate successful and
unsuccessful termination, respectively.
Before termination it performs the following functions in the order listed:
Standard C guarantees only that the values zero,
EXIT_FAILURE produce meaningful results. POSIX
extends this to guarantee that the least significant 8 bits of
status are preserved and returned to the parent via
wait(2). Values outside the
supported range 0-255 are bitwise-truncated; therefore, negative values
should not be used.
exit() function never returns.
exit() function conforms to
|January 2, 2012||NetBSD-7.0.1|