8000 minix/lib/ansi/atexit.c at R3.1.4 · lukegithub/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
executable file
·
17 lines (13 loc) · 235 Bytes

atexit.c

File metadata and controls

executable file
·
17 lines (13 loc) · 235 Bytes
/* $Header$ */
#include <stdlib.h>
#define NEXITS 32
extern void (*__functab[NEXITS])(void);
extern int __funccnt;
int
atexit(void (*func)(void))
{
if (__funccnt >= NEXITS)
return 1;
__functab[__funccnt++] = func;
return 0;
}
0