. use library function to parse memory string
[minix3.git] / lib / ansi / atexit.c
blob3f10bdbbec6670fd89dfcd62c1fcdea7995304c6
1 /* $Header$ */
3 #include <stdlib.h>
5 #define NEXITS 32
7 extern void (*__functab[NEXITS])(void);
8 extern int __funccnt;
10 int
11 atexit(void (*func)(void))
13 if (__funccnt >= NEXITS)
14 return 1;
15 __functab[__funccnt++] = func;
16 return 0;