home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
CLIPPER
/
MISC
/
EMXLIB8F.ZIP
/
EMX
/
LIB
/
IO
/
FLUSHALL.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1993-01-02
|
322 b
|
19 lines
/* flushall.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */
#include <sys/emx.h>
#include <stdio.h>
int flushall (void)
{
int i, n;
n = 0;
for (i = 0; i < _nfiles; ++i)
if (_streamv[i].flags & _IOOPEN)
{
++n;
fflush (&_streamv[i]);
}
return (n);
}