home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / libio / cleanup.c < prev    next >
C/C++ Source or Header  |  1995-05-05  |  316b  |  16 lines

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