repo.or.cz
/
coreutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[coreutils.git]
/
lib
/
atexit.c
blob
85e992f72e07610e4bc56192637cdd9bc1a50e11
1
/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2
/* This function is in the public domain. --Mike Stump. */
3
4
#include
"config.h"
5
6
int
7
atexit
(
f
)
8
void
(*
f
)();
9
{
10
/* If the system doesn't provide a definition for atexit, use on_exit
11
if the system provides that. */
12
on_exit
(
f
,
0
);
13
return
0
;
14
}