X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstdio%2Ffseek.c;h=ca0017cacfc02f1fbaaf259be15fd0ca90f1c4a1;hb=9de422385dc3bce1826c311145a1c46191574b4c;hp=f33f250938a0e1cdaaa7fddbe6f971b2e8d52b3a;hpb=09790f0e311b3418b0eb2e05a43ce738abbc1c14;p=fw%2Fpdclib diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index f33f250..ca0017c 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -12,6 +12,10 @@ int fseek( struct _PDCLIB_file_t * stream, long int offset, int whence ) { + if ( stream->status & _PDCLIB_WROTELAST ) + { + fflush( stream ); + } /* TODO: Implement. */ return 0; }