]> pd.if.org Git - pdclib/blobdiff - functions/stdio/printf.c
PDCLIB-16: Add _unlocked variations of all I/O routines; move work into these versions
[pdclib] / functions / stdio / printf.c
index 122f8df0bf98c24d37fe564b96d39073e955cf0b..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