X-Git-Url: https://git.gag.com/?p=fw%2Fpdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffseek.c;h=1c5332d0b5832f8e49535a6bb69e8214891dab2f;hp=9a945477445c4642291748ba17cd86cd97fe4855;hb=18651c56f7c1af8d23d3ee6ea966d117d6c781d6;hpb=98263bcb0de07459069c5a39867a4fd3d6a08da7 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; }