/* $Id$ */
-/* Release $Name$ */
-
/* vprintf( const char *, va_list arg )
This file is part of the Public Domain C Library (PDCLib).
#endif
#ifdef TEST
+#include <limits.h>
+#include <string.h>
#include <_PDCLIB_test.h>
+static int testprintf( FILE * stream, const char * format, ... )
+{
+ int i;
+ va_list arg;
+ va_start( arg, format );
+ i = vprintf( format, arg );
+ va_end( arg );
+ return i;
+}
+
+#define TESTCASE_SPRINTF( x )
+
int main( void )
{
- TESTCASE( NO_TESTDRIVER );
+ FILE * target;
+ TESTCASE( ( target = freopen( testfile, "wb", stdout ) ) != NULL );
+#include "printf_testcases.incl"
+ TESTCASE( fclose( target ) == 0 );
+#include "fprintf_reftest.incl"
+ TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}