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 );
24 int printf_unlocked( const char * _PDCLIB_restrict format, ... )
28 va_start( ap, format );
29 rc = vfprintf_unlocked( stdout, format, ap );
37 #define _PDCLIB_FILEID "stdio/printf.c"
38 #define _PDCLIB_FILEIO
40 #include <_PDCLIB_test.h>
42 #define testprintf( stream, ... ) printf( __VA_ARGS__ )
47 TESTCASE( ( target = freopen( testfile, "wb+", stdout ) ) != NULL );
48 #include "printf_testcases.h"
49 TESTCASE( fclose( target ) == 0 );
50 TESTCASE( remove( testfile ) == 0 );