Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ atexit(2) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exit(2)

atexit(2)

NAME

atexit − register a function to be called at program termination

SYNOPSIS

#include <stdlib.h>

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

DESCRIPTION

atexit() registers the function func to be called, without arguments, at normal program termination.  Functions registered by atexit() are called in reverse order of registration. 

An atexit() call during exit processing is always unsuccessful. 

The number of registered functions should not exceed ATEXIT_MAX as specified in <limits.h>. 

RETURN VALUE

atexit() returns zero if the registration is successful; non-zero if unsuccessful. 

SEE ALSO

exit(2). 

STANDARDS CONFORMANCE

atexit(): AES, XPG4, ANSI C

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

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