3 /* vprintf( const char *, va_list arg )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
14 int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
16 return vfprintf( stdout, format, arg );
24 #include <_PDCLIB_test.h>
26 static int testprintf( FILE * stream, size_t n, const char * format, ... )
30 va_start( arg, format );
31 i = vprintf( format, arg );
36 #define TESTCASE_SPRINTF( x )
41 TESTCASE( ( buffer = freopen( testfile, "wb", stdout ) ) != NULL );
42 #include "printf_testcases.incl"
43 TESTCASE( fclose( buffer ) == 0 );
44 #include "fprintf_reftest.incl"
45 TESTCASE( remove( testfile ) == 0 );