*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> atexit (3)              
Title
Content
Arch
Section
 

ATEXIT(3)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

       #include <stdlib.h>

       int atexit(void (*function)(void));

DESCRIPTION    [Toc]    [Back]

       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    [Toc]    [Back]

       The  atexit()  function returns the value 0 if successful; otherwise it
       returns a nonzero value; errno is not set.

CONFORMING TO    [Toc]    [Back]

       SVID 3, BSD 4.3, ISO 9899

SEE ALSO    [Toc]    [Back]

      
      
       exit(3), on_exit(3)



GNU				  1997-09-14			     ATEXIT(3)
[ Back ]
 Similar pages
Name OS Title
atexit HP-UX register a function to be called at program termination
exit Linux cause normal program termination
exit OpenBSD perform normal program termination
_Exit OpenBSD perform normal program termination
_Exit FreeBSD perform normal program termination
exit FreeBSD perform normal program termination
exit NetBSD perform normal program termination
atexit OpenBSD register a function to be called on exit
atexit FreeBSD register a function to be called on exit
atexit NetBSD register a function to be called on exit
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service