
EXIT(3)                    UNIX Programmer's Manual                    EXIT(3)

NNAAMMEE
     eexxiitt - perform normal program termination

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttddlliibb..hh>>

     _v_o_i_d
     eexxiitt(_i_n_t _s_t_a_t_u_s)

DDEESSCCRRIIPPTTIIOONN
     EExxiitt() terminates a process.

     Before termination it performs the following functions in the order list-
     ed:

           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.

RREETTUURRNN VVAALLUUEESS
     The eexxiitt() function never returns.

SSEEEE AALLSSOO
     _exit(2),  atexit(3),  intro(3),  tmpfile(3)

SSTTAANNDDAARRDDSS
     The eexxiitt() function conforms to ANSI C3.159-1989 (``ANSI C'').

BSD Experimental                 June 29, 1991                               1





























