#include #define NONEXIT 34 extern int (*_atexitfns[NONEXIT])(void); int atexit(int (*f)(void)) { int i; for(i=0; i