]> pd.if.org Git - pdclib.old/blob - functions/stdio/putchar.c
[gandr] s/__lp64__/__LP64__/ to match GCC define
[pdclib.old] / functions / stdio / putchar.c
1 /* $Id$ */
2
3 /* putchar( int )
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 #include <_PDCLIB_io.h>
13
14 int _PDCLIB_putchar_unlocked( int c )
15 {
16     return _PDCLIB_fputc_unlocked( c, stdout );
17 }
18
19 int putchar( int c )
20 {
21     return fputc( c, stdout );
22 }
23
24 #endif
25
26 #ifdef TEST
27 #include <_PDCLIB_test.h>
28
29 int main( void )
30 {
31     /* Testing covered by ftell.c */
32     return TEST_RESULTS;
33 }
34
35 #endif