Annotated edit history of
atexit(3) version 4, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
ATEXIT |
| |
|
2 |
!!!ATEXIT |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
RETURN VALUE |
| |
|
7 |
CONFORMING TO |
| |
|
8 |
SEE ALSO |
| |
|
9 |
---- |
| |
|
10 |
!!NAME |
| |
|
11 |
|
| |
|
12 |
|
| |
|
13 |
atexit - register a function to be called at normal program termination. |
| |
|
14 |
!!SYNOPSIS |
| |
|
15 |
|
| |
|
16 |
|
| |
|
17 |
__#include |
| |
|
18 |
__''function''__)(void)); |
| |
|
19 |
__ |
| |
|
20 |
!!DESCRIPTION |
| |
|
21 |
|
| |
|
22 |
|
| |
|
23 |
The __atexit()__ function registers the given |
| |
|
24 |
''function'' to be called at normal program termination, |
| |
|
25 |
whether via exit(3) or via return from the program's |
| |
|
26 |
__main__. Functions so registered are called in the |
| |
|
27 |
reverse order of their registration; no arguments are |
| |
|
28 |
passed. |
| |
|
29 |
!!RETURN VALUE |
| |
|
30 |
|
| |
|
31 |
|
| |
|
32 |
The __atexit()__ function returns the value 0 if |
| |
|
33 |
successful; otherwise it returns a nonzero value; |
| |
|
34 |
''errno'' is not set. |
| |
|
35 |
!!CONFORMING TO |
| |
|
36 |
|
| |
|
37 |
|
| |
|
38 |
SVID 3, BSD 4.3, ISO 9899 |
| |
|
39 |
!!SEE ALSO |
| |
|
40 |
|
| |
|
41 |
|
| 4 |
perry |
42 |
exit(3), on_exit(3) |
| 1 |
perry |
43 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.