]> pd.if.org Git - pdclib/blobdiff - functions/stdio/getchar.c
PDCLIB-16: Add _unlocked variations of all I/O routines; move work into these versions
[pdclib] / functions / stdio / getchar.c
index bce6855ef8ff0d5a601f7b7da772ecb70cb64f5c..406abe434f9dd4fefc3899eb13bf7c6794c9265c 100644 (file)
@@ -1,7 +1,5 @@
 /* $Id$ */
 
-/* Release $Name$ */
-
 /* getchar( void )
 
    This file is part of the Public Domain C Library (PDCLib).
 
 #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;
 }