#include #define NEXIT 33 intern void (*onex[NEXIT])(void); int atexit(void (*f)(void)) { int i; for(i=0; i= 0; i--) if(f = onex[i]) { onex[i] = nil; (*f)(); } __exits(s); }