Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 
 

ATEXIT

Section: Linux Programmer's Manual (3)
Updated: 1997-09-14
Index Return to Main Contents
 

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 exit(3) 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 it returns a nonzero value; errno is not set.  

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899  

SEE ALSO

exit(3), on_exit(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright.

1999-2008 Linuxinfor.com. No rights reserved.