+ if ( stream->status & _PDCLIB_FWRITE )
+ {
+ if ( _PDCLIB_flushbuffer( stream ) == EOF )
+ {
+ return EOF;
+ }
+ }
+ stream->status &= ~ _PDCLIB_EOFFLAG;
+ if ( stream->status & _PDCLIB_FRW )
+ {
+ stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE );
+ }
+ return _PDCLIB_seek( stream, offset, whence );