X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffseek.c;h=1c5332d0b5832f8e49535a6bb69e8214891dab2f;hp=9a945477445c4642291748ba17cd86cd97fe4855;hb=c0efd44abb3d05816f8e81006d225703e1d430d3;hpb=8f26ee1005f7caf1f8b53935e3222c1c58d7c8fe diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index 9a94547..1c5332d 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -26,7 +26,7 @@ int fseek( struct _PDCLIB_file_t * stream, long offset, int whence ) { stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE ); } - return ( _PDCLIB_seek( stream, offset, whence ) == offset ) ? 0 : EOF; + return ( _PDCLIB_seek( stream, offset, whence ) != EOF ) ? 0 : EOF; } #endif @@ -36,7 +36,7 @@ int fseek( struct _PDCLIB_file_t * stream, long offset, int whence ) int main( void ) { - /* Testing covered by ftell.c */ + TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; }