]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vprintf.c
Streamlined printf testing.
[pdclib] / functions / stdio / vprintf.c
index a02c625670582f208e5d6b1a2092818bf4da06e5..904f791e45e23aae0f0e38c9bb59a6e2d52da7c5 100644 (file)
@@ -23,7 +23,7 @@ int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
 #include <string.h>
 #include <_PDCLIB_test.h>
 
-static int testprintf( FILE * stream, size_t n, const char * format, ... )
+static int testprintf( FILE * stream, const char * format, ... )
 {
     int i;
     va_list arg;
@@ -37,10 +37,10 @@ static int testprintf( FILE * stream, size_t n, const char * format, ... )
 
 int main( void )
 {
-    FILE * buffer;
-    TESTCASE( ( buffer = freopen( testfile, "wb", stdout ) ) != NULL );
+    FILE * target;
+    TESTCASE( ( target = freopen( testfile, "wb", stdout ) ) != NULL );
 #include "printf_testcases.incl"
-    TESTCASE( fclose( buffer ) == 0 );
+    TESTCASE( fclose( target ) == 0 );
 #include "fprintf_reftest.incl"
     TESTCASE( remove( testfile ) == 0 );
     return TEST_RESULTS;