atexit.c revision 1.1
1/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ 2/* This function is in the public domain. --Mike Stump. */ 3 4#ifdef HAVE_CONFIG_H 5# include <config.h> 6#endif 7 8int 9atexit (void (*f) (void)) 10{ 11 /* If the system doesn't provide a definition for atexit, use on_exit 12 if the system provides that. */ 13 on_exit (f, 0); 14 return 0; 15} 16