repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. use library function to parse memory string
[minix3.git]
/
lib
/
ansi
/
atexit.c
blob
3f10bdbbec6670fd89dfcd62c1fcdea7995304c6
1
/* $Header$ */
2
3
#include <stdlib.h>
4
5
#define NEXITS 32
6
7
extern
void
(*
__functab
[
NEXITS
])(
void
);
8
extern
int
__funccnt
;
9
10
int
11
atexit
(
void
(*
func
)(
void
))
12
{
13
if
(
__funccnt
>=
NEXITS
)
14
return
1
;
15
__functab
[
__funccnt
++] =
func
;
16
return
0
;
17
}