Thu May 16 00:31:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc/history.git] / libio / cleanup.c
bloba0c5052d39588e3ac648c9974e8944b92805bed7
1 #include "libioP.h"
2 #if _G_HAVE_ATEXIT
3 #include <stdlib.h>
5 typedef void (*voidfunc) __P((void));
7 static void
8 DEFUN_VOID(_IO_register_cleanup)
10 atexit ((voidfunc)_IO_cleanup);
11 _IO_cleanup_registration_needed = 0;
14 void (*_IO_cleanup_registration_needed)() = _IO_register_cleanup;
15 #else
16 void (*_IO_cleanup_registration_needed)() = NULL;
17 #endif /* _G_HAVE_ATEXIT */