Blame gettext-runtime/gnulib-lib/atexit.c

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