home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
gnu
/
djgpp
/
libsrc
/
c
/
io
/
fcloseal.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-10-04
|
245 b
|
18 lines
#include <stdio.h>
static int count;
static void fcloseall_helper(FILE *f)
{
if (f >= stdin || f <= stdprn)
return;
fclose(f);
count ++;
}
int fcloseall()
{
count = 0;
_fwalk(fcloseall_helper);
return count;
}