X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetc.c;fp=functions%2Fstdio%2Fgetc.c;h=a459c22abbc50fd3a35c7b01ceb33e861bfce980;hb=9a862b964b7c7226f4d2fc52de13e0db0a9c66d4;hp=0000000000000000000000000000000000000000;hpb=babe116007c414671ede1a315f16f7936fa3bb0b;p=pdclib diff --git a/functions/stdio/getc.c b/functions/stdio/getc.c new file mode 100644 index 0000000..a459c22 --- /dev/null +++ b/functions/stdio/getc.c @@ -0,0 +1,29 @@ +/* $Id$ */ + +/* getc( FILE * ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +int getc( struct _PDCLIB_file_t * stream ) +{ + return fgetc( stream ); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + /* Testing covered by ftell.c */ + return TEST_RESULTS; +} + +#endif