Copyright (C) 2000-2012 |
Manpages ATEXITSection: Linux Programmer's Manual (3 )Updated: 1997-09-14 Index Return to Main Contents NAMEatexit - register a function to be called at normal program termination.SYNOPSIS#include <stdlib.h> int atexit(void (*function)(void)); DESCRIPTIONThe 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 VALUEThe atexit() function returns the value 0 if successful; otherwise it returns a nonzero value; errno is not set.CONFORMING TOSVID 3, BSD 4.3, ISO 9899SEE ALSOexit(3), on_exit(3)
IndexThis document was created by man2html, using the manual pages. Time: 01:22:29 GMT, April 25, 2024 |