]> pd.if.org Git - pdclib/blobdiff - functions/stdio/fgets.c
Removed SVN keyword tags.
[pdclib] / functions / stdio / fgets.c
index 95103bb2ad753f8d9430a1af6be9208dea4babb3..d757f000bb722357e5c30ebeafe5ea346fb934c3 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* fgets( char *, int, FILE * )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -11,7 +9,7 @@
 #ifndef REGTEST
 #include <_PDCLIB_io.h>
 
-char * fgets_unlocked( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restrict stream )
+char * _PDCLIB_fgets_unlocked( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restrict stream )
 {
     if ( size == 0 )
     {
@@ -37,9 +35,9 @@ char * fgets_unlocked( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restr
 char * fgets( char * _PDCLIB_restrict s, int size, 
               FILE * _PDCLIB_restrict stream )
 {
-    flockfile( stream );
-    char* r = fgets_unlocked( s, size, stream );
-    funlockfile( stream );
+    _PDCLIB_flockfile( stream );
+    char* r = _PDCLIB_fgets_unlocked( s, size, stream );
+    _PDCLIB_funlockfile( stream );
     return r;
 }