3 /* printf( const char *, ... )
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 printf( const char * _PDCLIB_restrict format, ... )
18 va_start( ap, format );
19 rc = vfprintf( stdout, format, ap );
29 #include <_PDCLIB_test.h>
31 #define testprintf( stream, n, format, ... ) printf( format, __VA_ARGS__ )
33 #define TESTCASE_SPRINTF( x )
38 TESTCASE( ( buffer = freopen( testfile, "wb", stdout ) ) != NULL );
39 #include "printf_testcases.incl"
40 TESTCASE( fclose( buffer ) == 0 );
41 #include "fprintf_reftest.incl"
42 TESTCASE( remove( testfile ) == 0 );