Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of ATEXIT

ATEXIT

Section: Linux Programmer's Manual (3)
Updated: 14 September 2025
Index  

NAME

atexit - register a function to be called at normal program termination.  

SYNOPSIS

#include <stdlib.h>
int atexit(void (*function)(void));
 

DESCRIPTION

The atexit() function registers the given function to be called at normal program termination, whether via or via return from the program's main. Functions so registered are called in the reverse order of their registration; no arguments are passed.  

RETURN VALUE

The atexit() function returns the value 0 if successful; otherwise the value -1 is returned; errno is not set.  

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:02 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat