1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 int fflush( FILE * stream ) { /* TODO */ };
10 /* PDPC code - unreviewed
11 Read the note in fopen.c.
22 if ((stream->upto != stream->fbuf) && (stream->mode == __WRITE_MODE))
25 rc = DosWrite(stream->hfile,
27 (size_t)(stream->upto - stream->fbuf),
37 actualWritten = __write(stream->hfile,
39 (size_t)(stream->upto - stream->fbuf),
44 errno = actualWritten;
49 stream->bufStartR += actualWritten;
50 stream->upto = stream->fbuf;