X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fstdio%2Ffseek.c;h=43789c8a71b6cca2cf43ffab38ccd22260bc0c26;hb=2dd72cf05ed2f00eb655bc9fd3d0ac750ae62524;hp=e3d3e7791836e7e92e25b293a6fe7ec853099fbe;hpb=0b5f84a52cf54e88b99a44efc6f5f2c46e9b294d;p=pdclib diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index e3d3e77..43789c8 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -26,7 +26,7 @@ int fseek( struct _PDCLIB_file_t * _PDCLIB_restrict stream, long offset, int whe { stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE ); } - return _PDCLIB_seek( stream, offset, whence ); + return ( _PDCLIB_seek( stream, offset, whence ) == offset ) ? 0 : EOF; } #endif