X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetchar.c;h=1e761766bf5d79b27349be4d869a48469492b3b6;hb=HEAD;hp=a98f6d708fb0d9bd25fe749f8a4446c492292521;hpb=d9dcf16664c81809258992e1653ecb68c8079974;p=pdclib.old diff --git a/functions/stdio/getchar.c b/functions/stdio/getchar.c index a98f6d7..1e76176 100644 --- a/functions/stdio/getchar.c +++ b/functions/stdio/getchar.c @@ -9,6 +9,13 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> + +int _PDCLIB_getchar_unlocked( void ) +{ + return _PDCLIB_fgetc_unlocked( stdin ); +} + int getchar( void ) { @@ -22,7 +29,7 @@ int getchar( void ) int main( void ) { - TESTCASE( NO_TESTDRIVER ); + /* Testing covered by ftell.c */ return TEST_RESULTS; }