]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/getchar.c
PDCLIB-16: Add _unlocked variations of all I/O routines; move work into these versions
[pdclib.old] / functions / stdio / getchar.c
index 0aef0c3463dbadf1af24cc9b98cfe71b04b702fa..406abe434f9dd4fefc3899eb13bf7c6794c9265c 100644 (file)
 
 #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;
 }