atexit.c

Go to the documentation of this file.
00001 /* $Header: /opt/proj/minix/cvsroot/src/lib/ansi/atexit.c,v 1.1.1.1 2005/04/21 14:56:04 beng Exp $ */
00002 
00003 #include        <stdlib.h>
00004 
00005 #define NEXITS  32
00006 
00007 extern void (*__functab[NEXITS])(void);
00008 extern int __funccnt;
00009 
00010 int
00011 atexit(void (*func)(void))
00012 {
00013         if (__funccnt >= NEXITS)
00014                 return 1;
00015         __functab[__funccnt++] = func;
00016         return 0;
00017 }

Generated on Fri Apr 14 22:57:25 2006 for minix by  doxygen 1.4.6