]> git.lyx.org Git - features.git/blob - src/atexit.C
last updates from 1.0.4, no more updates expected from that branch now
[features.git] / src / atexit.C
1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2 /* This function is in the public domain.  --Mike Stump. */
3
4 #ifndef NEED_on_exit
5 int atexit(void (*f)())
6 {
7   /* If the system doesn't provide a definition for atexit, use on_exit
8      if the system provides that.  */
9   on_exit (f, 0);
10   return 0;
11 }
12 #endif