Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
[glibc.git] / libio / cleanup.c
blob4a068083d0f3b3dcdf57df4d9174771b43e6715a
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) __P((void)) = _IO_register_cleanup;
18 #else
19 void (*_IO_cleanup_registration_needed) __P((void)) = NULL;
20 #endif /* _G_HAVE_ATEXIT */