Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
System Calls and Libraries: Sections 2 and 3 (Ref Pages Vol 3) > a

atexit(2)

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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, SVID3, XPG4, ANSI C

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.