minix man page for exit

Query: exit

OS: minix

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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
atexit(3c) - opensolaris
exit(3c) - opensolaris
exit(3) - mojave
_exit(3) - osx
_exithandle(3c) - minix
Similar Topics in the Unix Linux Community
exiting from a loop
Unable to install Sol10 on V245, exiting to shell.
Screen blanks when exiting vi and more
Need output of script on screen and file with correct return status of the called script.
Script Works But Need It to Exit Upon Closing Program