X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgetchar.c;h=406abe434f9dd4fefc3899eb13bf7c6794c9265c;hb=f3d811f877df14a15abccb5d6f11b2800a727db0;hp=bce6855ef8ff0d5a601f7b7da772ecb70cb64f5c;hpb=12e17136786afb1775c9dc946cbe41f5e230c24a;p=pdclib.old 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; }