Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ atexit(3C) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exit(2)



ATEXIT(3C-SVR4)     RISC/os Reference Manual      ATEXIT(3C-SVR4)



NAME
     atexit - add program termination routine

SYNOPSIS
     #include <stdlib.h>

     int atexit (void (*func)(void));

DESCRIPTION
     atexit adds the function func to a list of functions to be
     called without arguments on normal termination of the pro-
     gram.  Normal termination occurs by either a call to the
     exit system call or a return from main.  At most 32 func-
     tions may be registered by atexit; the functions will be
     called in the reverse order of their registration.

     atexit returns 0 if the registration succeeds, nonzero if it
     fails.

SEE ALSO
     exit(2).


































                        Printed 11/19/92                   Page 1



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