]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vprintf.c
Streamlined printf testing.
[pdclib] / functions / stdio / vprintf.c
index 2be15c2ad402150b0cfae0fd54bc02b0436c3220..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;
@@ -33,12 +33,14 @@ static int testprintf( FILE * stream, size_t n, const char * format, ... )
     return i;
 }
 
+#define TESTCASE_SPRINTF( x )
+
 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;