]> pd.if.org Git - pdclib/blob - functions/stdio/putchar.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdio / putchar.c
1 /* putchar( int )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <stdio.h>
8
9 #ifndef REGTEST
10 #include "_PDCLIB_io.h"
11
12 int _PDCLIB_putchar_unlocked( int c )
13 {
14     return _PDCLIB_fputc_unlocked( c, stdout );
15 }
16
17 int putchar( int c )
18 {
19     return fputc( c, stdout );
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