X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffgets.c;h=8752892bedc1a26103fe375089a5fff82b4b111b;hp=95103bb2ad753f8d9430a1af6be9208dea4babb3;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893 diff --git a/functions/stdio/fgets.c b/functions/stdio/fgets.c index 95103bb..8752892 100644 --- a/functions/stdio/fgets.c +++ b/functions/stdio/fgets.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* fgets( char *, int, FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -9,9 +7,9 @@ #include #ifndef REGTEST -#include <_PDCLIB_io.h> +#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,16 +35,16 @@ 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; } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" #include int main( void )