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