]> pd.if.org Git - pdclib/blobdiff - functions/stdio/fseek.c
Testdriver for gets(). Turns out fseek() was not tested yet.
[pdclib] / functions / stdio / fseek.c
index 9a945477445c4642291748ba17cd86cd97fe4855..1c5332d0b5832f8e49535a6bb69e8214891dab2f 100644 (file)
@@ -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;
 }