]> pd.if.org Git - pdclib.old/blob - functions/stdio/putc.c
[gandr] s/__lp64__/__LP64__/ to match GCC define
[pdclib.old] / functions / stdio / putc.c
1 /* $Id$ */
2
3 /* putc( 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 #include <_PDCLIB_io.h>
13
14 int _PDCLIB_putc_unlocked( int c, FILE * stream )
15 {
16     return _PDCLIB_fputc_unlocked( c, stream );
17 }
18
19
20 int putc( int c, FILE * stream )
21 {
22     return fputc( c, stream );
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