]> pd.if.org Git - pdclib/blobdiff - functions/stdio/ftell.c
Status review.
[pdclib] / functions / stdio / ftell.c
index db9eb3dc447565acc319ae274703d2d557791339..09dd17fe189113739befd74e293b4229b57b8738 100644 (file)
@@ -13,7 +13,7 @@
 
 long int ftell( struct _PDCLIB_file_t * stream )
 {
-    /* TODO: A bit too fuzzy in the head now. stream->ungetidx should be in here
+    /* FIXME: A bit too fuzzy in the head now. stream->ungetidx should be in here
              somewhere.
     */
     if ( stream->pos.offset > ( LONG_MAX - stream->bufidx ) )
@@ -48,8 +48,8 @@ int main( void )
     */
     char * buffer = (char*)malloc( 4 );
     FILE * fh;
-    remove( "testfile" );
-    TESTCASE( ( fh = fopen( "testfile", "w+" ) ) != NULL );
+    remove( testfile );
+    TESTCASE( ( fh = fopen( testfile, "w+" ) ) != NULL );
     TESTCASE( setvbuf( fh, buffer, _IOLBF, 4 ) == 0 );
     TESTCASE( fputc( '1', fh ) == '1' );
     TESTCASE( fputc( '2', fh ) == '2' );
@@ -77,7 +77,7 @@ int main( void )
     TESTCASE( fgetc( fh ) == '1' );
     TESTCASE( fclose( fh ) == 0 );
     /* TODO: t.b.c. */
-    remove( "testfile" );
+    remove( testfile );
     return TEST_RESULTS;
 }