No changes between revisions
/programs/develop/libraries/menuetlibc/src/libc/ansi/stdio/stdiohk.c |
0,0 → 1,18 |
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
#include <stdio.h> |
#include <libc/file.h> |
#include <libc/local.h> |
|
static void fcloseall_helper(FILE *f) |
{ |
fflush(f); |
if (fileno(f) > 2) |
fclose(f); |
} |
|
void __stdio_cleanup_proc(void) |
{ |
_fwalk(fcloseall_helper); |
} |
|
void (*__stdio_cleanup_hook)(void) = __stdio_cleanup_proc; |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |