X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fstdio%2Fprintf.c;h=a4efd6a7015d872ddedc9bc6d3b1a3df1b93abea;hb=84d648157e22cecc65902ecfdd4e3a1b88d5e53f;hp=122f8df0bf98c24d37fe564b96d39073e955cf0b;hpb=fce9a8538009ea5c113b03c608cedf036ce4a364;p=pdclib.old diff --git a/functions/stdio/printf.c b/functions/stdio/printf.c index 122f8df..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