* doc/c-tree.texi, doc/contrib.texi, doc/extend.texi,
[official-gcc.git] / libiberty / atexit.c
blob137d985e4cbc5ed18e577fa5a91ee0d678878a8e
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 #ifdef HAVE_ON_EXIT
8 int
9 atexit(f)
10 void (*f)();
12 /* If the system doesn't provide a definition for atexit, use on_exit
13 if the system provides that. */
14 on_exit (f, 0);
15 return 0;
18 #endif