shithub: scc

ref: 8e212d00e17c23b79489215d6cc41da22381a550
dir: /lib/c/stdlib/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);
}