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.
11 #include "_PDCLIB_io.h"
13 int printf( const char * _PDCLIB_restrict format, ... )
17 va_start( ap, format );
18 rc = vfprintf( stdout, format, ap );
23 int _PDCLIB_printf_unlocked( const char * _PDCLIB_restrict format, ... )
27 va_start( ap, format );
28 rc = _PDCLIB_vfprintf_unlocked( stdout, format, ap );
36 #define _PDCLIB_FILEID "stdio/printf.c"
37 #define _PDCLIB_FILEIO
41 #include "_PDCLIB_test.h"
43 #define testprintf( stream, ... ) printf( __VA_ARGS__ )
48 TESTCASE( ( target = freopen( testfile, "wb+", stdout ) ) != NULL );
49 #include "printf_testcases.h"
50 TESTCASE( fclose( target ) == 0 );
51 TESTCASE( remove( testfile ) == 0 );