]> pd.if.org Git - pdclib/blob - functions/stdio/getc.c
7898edfb04b56d74a18630aa2a25e25a8a9a905e
[pdclib] / functions / stdio / getc.c
1 /* getc( FILE * )
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_getc_unlocked( FILE * stream )
13 {
14     return _PDCLIB_fgetc_unlocked( stream );
15 }
16
17 int getc( FILE * stream )
18 {
19     return fgetc( stream );
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