Stub out most of stdio on AltOS
[fw/pdclib] / platform / altos / functions / stdio / fputc.c
1 /* $Id$ */
2
3 /* fputc( int, 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 extern void ao_putchar(char c);
14
15 /* Write the value c (cast to unsigned char) to the given stream.
16    Returns c if successful, EOF otherwise.
17    If a write error occurs, the error indicator of the stream is set.
18 */
19 int fputc( int c, struct _PDCLIB_file_t * stream )
20 {
21         ao_putchar(c);
22         return c;
23 }
24
25 #endif
26
27 #ifdef TEST
28 #include <_PDCLIB_test.h>
29
30 int main( void )
31 {
32     /* Testing covered by ftell.c */
33     return TEST_RESULTS;
34 }
35
36 #endif