X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fprintf.c;h=a4efd6a7015d872ddedc9bc6d3b1a3df1b93abea;hb=f3d811f877df14a15abccb5d6f11b2800a727db0;hp=23536dd84e145761f7c29360dd1b13e4c9f2404b;hpb=33515db12d3cc5e53a8bdea58d2cde299cba2267;p=pdclib.old diff --git a/functions/stdio/printf.c b/functions/stdio/printf.c index 23536dd..a4efd6a 100644 --- a/functions/stdio/printf.c +++ b/functions/stdio/printf.c @@ -21,6 +21,16 @@ int printf( const char * _PDCLIB_restrict format, ... ) return rc; } +int printf_unlocked( const char * _PDCLIB_restrict format, ... ) +{ + int rc; + va_list ap; + va_start( ap, format ); + rc = vfprintf_unlocked( stdout, format, ap ); + va_end( ap ); + return rc; +} + #endif #ifdef TEST @@ -29,7 +39,7 @@ int printf( const char * _PDCLIB_restrict format, ... ) #include <_PDCLIB_test.h> -#define testprintf( stream, format, ... ) printf( format, __VA_ARGS__ ) +#define testprintf( stream, ... ) printf( __VA_ARGS__ ) int main( void ) {