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