Annotated edit history of
on_exit(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
ON_EXIT |
|
|
2 |
!!!ON_EXIT |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
SEE ALSO |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
on_exit - register a function to be called at normal program termination. |
|
|
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__#include |
|
|
17 |
__''function''__)(int , void *), void *__''arg''__); |
|
|
18 |
__ |
|
|
19 |
!!DESCRIPTION |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
The __on_exit()__ function registers the given |
|
|
23 |
''function'' to be called at normal program termination, |
|
|
24 |
whether via exit(3) or via return from the program's |
|
|
25 |
__main__. The ''function'' is passed the argument to |
|
|
26 |
exit(3) and the ''arg'' argument from |
|
|
27 |
__on_exit()__. |
|
|
28 |
!!RETURN VALUE |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
The __on_exit()__ function returns the value 0 if |
|
|
32 |
successful; otherwise the value -1 is returned. |
|
|
33 |
!!SEE ALSO |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
atexit(3), exit(3) |
|
|
37 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.