exit(3)exit(3)Nameexit - terminate a process after flushing any pending output
The function terminates a process after calling the Standard I/O
library function, _cleanup, to flush any buffered output. The function
The function registers a function to be called (without arguments) at
normal program termination; functions are called in the reverse order
of their registration (that is, most recent first). If a function is
registered more than once, it will be called more than once.
The function returns zero if the registration succeeds, or -1 if the
function pointer is null or if too many functions are registered.
See Alsoexit(2), intro(3s)exit(3)