]> pd.if.org Git - pdclib.old/blob - functions/stdio/getchar.c
Namespace cleanliness: Rename all ***_unlocked functions to _PDCLIB_***_unlocked.
[pdclib.old] / functions / stdio / getchar.c
1 /* $Id$ */
2
3 /* getchar( void )
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_getchar_unlocked( void )
15 {
16     return _PDCLIB_fgetc_unlocked( stdin );
17 }
18
19
20 int getchar( void )
21 {
22     return fgetc( stdin );
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