]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/printf.c
FIXES PDCLIB-20 by preserving _PDCLIB_STATUS flag
[pdclib.old] / functions / stdio / printf.c
index 23536dd84e145761f7c29360dd1b13e4c9f2404b..a4efd6a7015d872ddedc9bc6d3b1a3df1b93abea 100644 (file)
@@ -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 )
 {