X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetchar.c;h=1e761766bf5d79b27349be4d869a48469492b3b6;hb=HEAD;hp=bce6855ef8ff0d5a601f7b7da772ecb70cb64f5c;hpb=12e17136786afb1775c9dc946cbe41f5e230c24a;p=pdclib.old diff --git a/functions/stdio/getchar.c b/functions/stdio/getchar.c index bce6855..1e76176 100644 --- a/functions/stdio/getchar.c +++ b/functions/stdio/getchar.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* getchar( void ) This file is part of the Public Domain C Library (PDCLib). @@ -11,6 +9,13 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> + +int _PDCLIB_getchar_unlocked( void ) +{ + return _PDCLIB_fgetc_unlocked( stdin ); +} + int getchar( void ) { @@ -24,7 +29,7 @@ int getchar( void ) int main( void ) { - TESTCASE( NO_TESTDRIVER ); + /* Testing covered by ftell.c */ return TEST_RESULTS; }