X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetc.c;h=7a2a900d3237db8d19c3954821106cebfab3839c;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hp=9338bafaa11114266bdb01a00bc67e577a721111;hpb=6ca24b75c75b9c6f22e1e69693d326b8e3330841;p=pdclib diff --git a/functions/stdio/getc.c b/functions/stdio/getc.c index 9338baf..7a2a900 100644 --- a/functions/stdio/getc.c +++ b/functions/stdio/getc.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* getc( FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -9,13 +7,14 @@ #include #ifndef REGTEST - -int getc_unlocked( struct _PDCLIB_file_t * stream ) +#include "_PDCLIB_io.h" + +int _PDCLIB_getc_unlocked( FILE * stream ) { - return fgetc_unlocked( stream ); + return _PDCLIB_fgetc_unlocked( stream ); } -int getc( struct _PDCLIB_file_t * stream ) +int getc( FILE * stream ) { return fgetc( stream ); } @@ -23,7 +22,7 @@ int getc( struct _PDCLIB_file_t * stream ) #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {