1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2 /* This file is in the public domain. */
3
4 /* Written by Mike Stump. */
5
6 #include <config.h>
7
8 int
9 atexit (void (*f) (void))
/* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
*/
10 {
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;
15 }