[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    exit(3C) manual page Table of Contents

Name

exit - terminate process

Synopsis

#include <stdlib.h>

void exit(int status);

MT-Level

Safe

Description

The C function exit() first calls any functions registered through the atexit(3C) function in the reverse order of their registration. exit() then calls _exit, which circumvents all such functions and cleanup.

The symbols EXIT_SUCCESS and EXIT_FAILURE are defined in the header <stdlib.h> and may be used as the value of status to indicate successful or unsuccessful termination, respectively.

See Also

exit(2) , atexit(3C)


Table of Contents