shithub: scc

ref: 620493c9bdc92f1d4309f1b6bbf9c23f2000aecb
dir: /lib/c/src/exit.c/

View raw version
#include <stdlib.h>
#undef exit

void (*_exitf[_ATEXIT_MAX])(void);
unsigned _exitn;

void
exit(int status)
{
	while (_exitn > 0)
		(*_exitf[--_exitn])();
	_Exit(status);
}