#ifndef REGTEST
+int vprintf_unlocked( const char * _PDCLIB_restrict format,
+ _PDCLIB_va_list arg )
+{
+ return vfprintf_unlocked( stdout, format, arg );
+}
+
int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
{
return vfprintf( stdout, format, arg );
#endif
#ifdef TEST
-#include <limits.h>
-#include <string.h>
+#define _PDCLIB_FILEID "stdio/vprintf.c"
+#define _PDCLIB_FILEIO
+
#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;
return i;
}
-#define TESTCASE_SPRINTF( x )
-
int main( void )
{
- FILE * buffer;
- TESTCASE( ( buffer = freopen( testfile, "wb", stdout ) ) != NULL );
-#include "printf_testcases.incl"
- TESTCASE( fclose( buffer ) == 0 );
-#include "fprintf_reftest.incl"
+ FILE * target;
+ TESTCASE( ( target = freopen( testfile, "wb+", stdout ) ) != NULL );
+#include "printf_testcases.h"
+ TESTCASE( fclose( target ) == 0 );
TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}