havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
[gnulib.git] / lib / atexit.c
blob5ef33e57ee21922fd0e6e01f1635544e4fcb0a89
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 (void (*f) (void))
9 /* If the system doesn't provide a definition for atexit, use on_exit
10 if the system provides that. */
11 on_exit (f, 0);
12 return 0;