]> pd.if.org Git - pdclib/blobdiff - functions/stdio/getchar.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdio / getchar.c
index 16037287f9d166ada249d915bbd3c00492731a97..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,7 +23,7 @@ int getchar( void )
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 
 int main( void )
 {