home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / libg++-2.5.3-src.lha / src / amiga / libg++-2.5.3 / libg++-2.5.3-amiga / libio / cleanup.c < prev    next >
C/C++ Source or Header  |  1993-10-12  |  313b  |  15 lines

  1. #include "libioP.h"
  2. #if _G_HAVE_ATEXIT
  3. #include <stdlib.h>
  4.  
  5. typedef void (*voidfunc) _PARAMS((void));
  6.  
  7. static void _IO_register_cleanup ()
  8. {
  9.   atexit ((voidfunc)_IO_flush_all);
  10.   _IO_cleanup_registration_needed = 0;
  11. }
  12.  
  13. void (*_IO_cleanup_registration_needed)() = _IO_register_cleanup;
  14. #endif /* _G_HAVE_ATEXIT */
  15.