Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exit(3C) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exit(2)

atexit(3C)

exit(3C)

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)

SunOS 5.2  —  Last change: 22 Jan 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026