X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Frewind.c;h=d97e4e21ac289db2e2ae8e3a60555350dedf29f7;hb=48ec56a384a70f2d7b1293db192e37f6dfaabe1e;hp=543e2849a740df13d89c35449e22667b6eaedd2d;hpb=e5112b619d1aae8ffc439389cfcbd3b2b4bd2454;p=pdclib diff --git a/functions/stdio/rewind.c b/functions/stdio/rewind.c index 543e284..d97e4e2 100644 --- a/functions/stdio/rewind.c +++ b/functions/stdio/rewind.c @@ -12,6 +12,10 @@ void rewind( struct _PDCLIB_file_t * stream ) { + if ( stream->status & _PDCLIB_WROTELAST ) + { + fflush( stream ); + } /* TODO: Implement. */ return; }