X-Git-Url: https://git.gag.com/?p=fw%2Fpdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fftell.c;h=0bf42f50698fccfacec7f1e6e8d51e9cc22ab886;hp=db9eb3dc447565acc319ae274703d2d557791339;hb=3956a4f15134f471663136d51626523ccff4e9ba;hpb=8f80da097704e9bdfd7a78c27a07f2f92b584846 diff --git a/functions/stdio/ftell.c b/functions/stdio/ftell.c index db9eb3d..0bf42f5 100644 --- a/functions/stdio/ftell.c +++ b/functions/stdio/ftell.c @@ -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; }