]> pd.if.org Git - pdclib/blobdiff - functions/stdio/getchar.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdio / getchar.c
index a98f6d708fb0d9bd25fe749f8a4446c492292521..4a6fe4d14a18e12aff95daeaf71fa4b963b8a8ed 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* getchar( void )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -9,6 +7,13 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+#include "_PDCLIB_io.h"
+
+int _PDCLIB_getchar_unlocked( void )
+{
+    return _PDCLIB_fgetc_unlocked( stdin );
+}
+
 
 int getchar( void )
 {
@@ -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;
 }