Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_unix/sys/src/ape/lib/ap/stdio/atexit.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <unistd.h>
2
#define	NONEXIT	34
3
extern void (*_atexitfns[NONEXIT])(void);
4
 
5
int
6
atexit(void (*f)(void))
7
{
8
	int i;
9
	for(i=0; i<NONEXIT; i++)
10
		if(!_atexitfns[i]){
11
			_atexitfns[i] = f;
12
			return(0);
13
		}
14
	return(1);
15
}