X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetchar.c;h=406abe434f9dd4fefc3899eb13bf7c6794c9265c;hb=84d648157e22cecc65902ecfdd4e3a1b88d5e53f;hp=0aef0c3463dbadf1af24cc9b98cfe71b04b702fa;hpb=42e018009a78cdddd97fd18d2b6bb02d8e0fe16e;p=pdclib.old diff --git a/functions/stdio/getchar.c b/functions/stdio/getchar.c index 0aef0c3..406abe4 100644 --- a/functions/stdio/getchar.c +++ b/functions/stdio/getchar.c @@ -10,7 +10,13 @@ #ifndef REGTEST -int (getchar)( void ) +int getchar_unlocked( void ) +{ + return fgetc_unlocked( stdin ); +} + + +int getchar( void ) { return fgetc( stdin ); } @@ -22,7 +28,7 @@ int (getchar)( void ) int main( void ) { - TESTCASE( NO_TESTDRIVER ); + /* Testing covered by ftell.c */ return TEST_RESULTS; }