[31/77] Use scalar_int_mode for move2add
[official-gcc.git] / libiberty / atexit.c
blobe091f0139eedc5519ed38aee9e9cfa1e4d2c180a
1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2 /* This function is in the public domain. --Mike Stump. */
4 /*
6 @deftypefn Supplemental int atexit (void (*@var{f})())
8 Causes function @var{f} to be called at exit. Returns 0.
10 @end deftypefn
14 #include "config.h"
16 #ifdef HAVE_ON_EXIT
18 int
19 atexit(void (*f)(void))
21 /* If the system doesn't provide a definition for atexit, use on_exit
22 if the system provides that. */
23 on_exit (f, 0);
24 return 0;
27 #endif