]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fputs.c
Namespace cleanliness: Rename all ***_unlocked functions to _PDCLIB_***_unlocked.
[pdclib.old] / functions / stdio / fputs.c
index 0f92aaa7d1beaf64cec2931d4557ca949ef48a4b..3565a1181e73d4978b895b9d5b9a668819109e87 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef REGTEST
 #include <_PDCLIB_io.h>
 
-int fputs_unlocked( const char * _PDCLIB_restrict s, 
+int _PDCLIB_fputs_unlocked( const char * _PDCLIB_restrict s, 
                     FILE * _PDCLIB_restrict stream )
 {
     if ( _PDCLIB_prepwrite( stream ) == EOF )
@@ -49,9 +49,9 @@ int fputs_unlocked( const char * _PDCLIB_restrict s,
 int fputs( const char * _PDCLIB_restrict s,
            FILE * _PDCLIB_restrict stream )
 {
-    flockfile( stream );
-    int r = fputs_unlocked( s, stream );
-    funlockfile( stream );
+    _PDCLIB_flockfile( stream );
+    int r = _PDCLIB_fputs_unlocked( s, stream );
+    _PDCLIB_funlockfile( stream );
     return r;
 }