home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / atexit.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  323b  |  13 lines

  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
  13.