1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ 2 /* This file is in the public domain. */ 3 4 /* Written by Mike Stump. */ 5 6 #include <config.h> 7 8 int 9 atexit (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 }