exp2l: Work around a NetBSD 10.0/i386 bug.
[gnulib.git] / lib / atexit.c
blobe47b9fbeaf3b8fcf517eca99ea5174e9964243fe
1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2 /* This file is in the public domain. */
4 /* Written by Mike Stump. */
6 #include <config.h>
8 int
9 atexit (void (*f) (void))
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;