X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetchar.c;h=406abe434f9dd4fefc3899eb13bf7c6794c9265c;hb=6ca24b75c75b9c6f22e1e69693d326b8e3330841;hp=bce6855ef8ff0d5a601f7b7da772ecb70cb64f5c;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;p=pdclib diff --git a/functions/stdio/getchar.c b/functions/stdio/getchar.c index bce6855..406abe4 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). @@ -12,6 +10,12 @@ #ifndef REGTEST +int getchar_unlocked( void ) +{ + return fgetc_unlocked( stdin ); +} + + int getchar( void ) { return fgetc( stdin ); @@ -24,7 +28,7 @@ int getchar( void ) int main( void ) { - TESTCASE( NO_TESTDRIVER ); + /* Testing covered by ftell.c */ return TEST_RESULTS; }