On altos, the primitive input function is ao_getchar, not getchar
[fw/pdclib] / platform / altos / functions / stdio / fgetc.c
1 /* $Id$ */
2
3 /* fgetc( FILE * )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #include <stdio.h>
10
11 #ifndef REGTEST
12
13 #undef ao_getchar
14
15 extern int ao_getchar(void);
16
17 int fgetc( struct _PDCLIB_file_t * stream )
18 {
19     return ao_getchar();
20 }
21
22 #endif
23
24 #ifdef TEST
25 #include <_PDCLIB_test.h>
26
27 int main( void )
28 {
29     /* Testing covered by ftell.c */
30     return TEST_RESULTS;
31 }
32
33 #endif