public
/
Ack-5.5.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pristine Ack-5.5
[Ack-5.5.git]
/
lang
/
cem
/
libcc.ansi
/
stdlib
/
atexit.c
1
/* $Id: atexit.c,v 1.2 1994/06/24 11:53:11 ceriel Exp $ */
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
}