projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved reference files to platform subdirs.
[fw/pdclib]
/
functions
/
stdio
/
ftell.c
diff --git
a/functions/stdio/ftell.c
b/functions/stdio/ftell.c
index 9ca449fe54a155d14bb747f0dca137aac8ede6c5..0bf42f50698fccfacec7f1e6e8d51e9cc22ab886 100644
(file)
--- a/
functions/stdio/ftell.c
+++ b/
functions/stdio/ftell.c
@@
-44,12
+44,12
@@
int main( void )
*/
/* The following functions delegate their tests to here:
fgetc fflush rewind fputc ungetc fseek
*/
/* 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;
*/
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' );
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. */
TESTCASE( fgetc( fh ) == '1' );
TESTCASE( fclose( fh ) == 0 );
/* TODO: t.b.c. */
- remove(
"testfile"
);
+ remove(
testfile
);
return TEST_RESULTS;
}
return TEST_RESULTS;
}