X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fftell.c;h=09dd17fe189113739befd74e293b4229b57b8738;hb=17d539d4dad385b70e22c3611c7642e0a020d990;hp=9ca449fe54a155d14bb747f0dca137aac8ede6c5;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/functions/stdio/ftell.c b/functions/stdio/ftell.c index 9ca449f..09dd17f 100644 --- a/functions/stdio/ftell.c +++ b/functions/stdio/ftell.c @@ -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 ) ) @@ -44,12 +44,12 @@ int main( void ) */ /* The following functions delegate their tests to here: fgetc fflush rewind fputc ungetc fseek - flushbuffer seek fillbuffer + flushbuffer seek fillbuffer prepread prepwrite */ 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; }