xref: /csrg-svn/lib/libc/stdlib/exit.3 (revision 42118)
Copyright (c) 1990 The Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)exit.3 6.3 (Berkeley) 05/16/90

EXIT 3 ""
C 5
NAME
exit - perform normal program termination
SYNOPSIS
exit(status)
int status;
DESCRIPTION
Exit terminates a process.

Before termination it performs the following functions in the order listed:

Call the functions registered with the atexit (3) function, in the reverse order of their registration.

Flush all open output streams.

Close all open streams.

Unlink all files created with the tmpfile (3) function.

Exit never returns.

"SEE ALSO"
exit(2), atexit(3), intro(3), tmpfile(3)
STANDARDS
Exit conforms to ANSI X3.159-1989 (``ANSI C'').