Blame gettext-runtime/gnulib-lib/atexit.c
|
Packit Bot |
06c835 |
/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
|
|
Packit Bot |
06c835 |
/* This function is in the public domain. --Mike Stump. */
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#include <config.h>
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
int
|
|
Packit Bot |
06c835 |
atexit (void (*f) (void))
|
|
Packit Bot |
06c835 |
{
|
|
Packit Bot |
06c835 |
/* If the system doesn't provide a definition for atexit, use on_exit
|
|
Packit Bot |
06c835 |
if the system provides that. */
|
|
Packit Bot |
06c835 |
on_exit (f, 0);
|
|
Packit Bot |
06c835 |
return 0;
|
|
Packit Bot |
06c835 |
}
|