On altos, the primitive input function is ao_getchar, not getchar
[fw/pdclib] / platform / altos / functions / stdio / fgetc.c
index 65aa4a226fc9425d5395be34e5f21921fc73faf8..fe2805a9257900bb805f9605692df400d0d0c34b 100644 (file)
 
 #ifndef REGTEST
 
+#undef ao_getchar
+
+extern int ao_getchar(void);
+
 int fgetc( struct _PDCLIB_file_t * stream )
 {
-    return getchar();
+    return ao_getchar();
 }
 
 #endif