18 lines
		
	
	
		
			235 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			235 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/* $Header$ */
 | 
						|
 | 
						|
#include	<stdlib.h>
 | 
						|
 | 
						|
#define	NEXITS	32
 | 
						|
 | 
						|
extern void (*__functab[NEXITS])(void);
 | 
						|
extern int __funccnt;
 | 
						|
 | 
						|
int
 | 
						|
atexit(void (*func)(void))
 | 
						|
{
 | 
						|
	if (__funccnt >= NEXITS)
 | 
						|
		return 1;
 | 
						|
	__functab[__funccnt++] = func;
 | 
						|
	return 0;
 | 
						|
}
 |