exit(3) minix man page | unix.com

Man Page: exit

Operating Environment: minix

Section: 3

EXIT(3) 						     Library Functions Manual							   EXIT(3)

NAME
exit, atexit - terminate a process after flushing any pending output
SYNOPSIS
#include <stdlib.h> void exit(int status) int atexit(void (*func)(void))
DESCRIPTION
Exit first calls all functions registered by atexit, flushes all data buffered by the Standard I/O library, and finally terminates the process. Exit never returns. Atexit registers the function func into a table of functions to be called on exit.
SEE ALSO
exit(2).
DIAGNOSTICS
Atexit returns 0 on success, -1 if malloc cannot allocate more memory for the list of registered functions. 4.2 Berkeley Distribution May 12, 1986 EXIT(3)
Related Man Pages
_exithandle(3c) - opensolaris
atexit(3c) - sunos
exit(3) - freebsd
exit(3) - osx
atexit(3) - freebsd
Similar Topics in the Unix Linux Community
Unable to find exit status of piped command
Screen blanks when exiting vi and more
To search the pattern on the basis of date and exit code
[BASH] Script to manage background scripts (running, finished, exit code)
Returning an exit code from a bash function