]> pd.if.org Git - pdclib.old/blob - functions/stdio/getc.c
e733d0b087b07368932cae511c067226de0f319e
[pdclib.old] / functions / stdio / getc.c
1 /* $Id$ */
2
3 /* getc( 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 int getc_unlocked( FILE * stream )
14 {
15     return fgetc_unlocked( stream );
16 }
17
18 int getc( FILE * stream )
19 {
20     return fgetc( stream );
21 }
22
23 #endif
24
25 #ifdef TEST
26 #include <_PDCLIB_test.h>
27
28 int main( void )
29 {
30     /* Testing covered by ftell.c */
31     return TEST_RESULTS;
32 }
33
34 #endif