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_unlocked( const char * _PDCLIB_restrict format,
17 return vfprintf_unlocked( stdout, format, arg );
20 int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
22 return vfprintf( stdout, format, arg );
28 #define _PDCLIB_FILEID "stdio/vprintf.c"
29 #define _PDCLIB_FILEIO
31 #include <_PDCLIB_test.h>
33 static int testprintf( FILE * stream, const char * format, ... )
37 va_start( arg, format );
38 i = vprintf( format, arg );
46 TESTCASE( ( target = freopen( testfile, "wb+", stdout ) ) != NULL );
47 #include "printf_testcases.h"
48 TESTCASE( fclose( target ) == 0 );
49 TESTCASE( remove( testfile ) == 0 );