X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffgetc.c;h=0b042c7d5be8506396f43f61a19b144570caa024;hp=56e96f5eca481fbdf88136fe42ffa5c03d29dcf5;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893 diff --git a/functions/stdio/fgetc.c b/functions/stdio/fgetc.c index 56e96f5..0b042c7 100644 --- a/functions/stdio/fgetc.c +++ b/functions/stdio/fgetc.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* fgetc( 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" -int fgetc_unlocked( FILE * stream ) +int _PDCLIB_fgetc_unlocked( FILE * stream ) { if ( _PDCLIB_prepread( stream ) == EOF ) { @@ -27,16 +25,16 @@ int fgetc_unlocked( FILE * stream ) int fgetc( FILE * stream ) { - flockfile( stream ); - int c = fgetc_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + int c = _PDCLIB_fgetc_unlocked( stream ); + _PDCLIB_funlockfile( stream ); return c; } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {