*** empty log message ***
[coreutils.git] / lib / atexit.c
blob85e992f72e07610e4bc56192637cdd9bc1a50e11
1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2 /* This function is in the public domain. --Mike Stump. */
4 #include "config.h"
6 int
7 atexit(f)
8 void (*f)();
10 /* If the system doesn't provide a definition for atexit, use on_exit
11 if the system provides that. */
12 on_exit (f, 0);
13 return 0;