EXIT

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

exit - perform normal program termination  

SYNOPSIS

Fd #include <stdlib.h> Ft void Fn exit int status  

DESCRIPTION

Fn Exit terminates a process.

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

  1. Call the functions registered with the atexit(3) function, in the reverse order of their registration.
  2. Flush all open output streams.
  3. Close all open streams.
  4. Unlink all files created with the tmpfile(3) function.

 

RETURN VALUES

The Fn exit function never returns.  

SEE ALSO

_exit2, atexit(3), intro(3), tmpfile(3)  

STANDARDS

The Fn exit function conforms to St -ansiC .


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 21:44:10 GMT, August 05, 2022