1 /* printf( const char *, ... )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
12 int printf( const char * _PDCLIB_restrict format, ... )
16 va_start( ap, format );
17 rc = vfprintf( stdout, format, ap );
25 #define _PDCLIB_FILEID "stdio/printf.c"
26 #define _PDCLIB_FILEIO
30 #include "_PDCLIB_test.h"
32 #define testprintf( stream, ... ) printf( __VA_ARGS__ )
37 TESTCASE( ( target = freopen( testfile, "wb+", stdout ) ) != NULL );
38 #include "printf_testcases.h"
39 TESTCASE( fclose( target ) == 0 );
40 TESTCASE( remove( testfile ) == 0 );