]> pd.if.org Git - pdclib/blobdiff - functions/stdio/getchar.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdio / getchar.c
index 0aef0c3463dbadf1af24cc9b98cfe71b04b702fa..4a6fe4d14a18e12aff95daeaf71fa4b963b8a8ed 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* getchar( void )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -9,8 +7,15 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+#include "_PDCLIB_io.h"
+
+int _PDCLIB_getchar_unlocked( void )
+{
+    return _PDCLIB_fgetc_unlocked( stdin );
+}
+
 
-int (getchar)( void )
+int getchar( void )
 {
     return fgetc( stdin );
 }
@@ -18,11 +23,11 @@ int (getchar)( void )
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 
 int main( void )
 {
-    TESTCASE( NO_TESTDRIVER );
+    /* Testing covered by ftell.c */
     return TEST_RESULTS;
 }