update for HEAD-2003091401
[reactos.git] / lib / msvcrt / stdio / getchar.c
1 /* $Id$
2  *
3  *  ReactOS msvcrt library
4  *
5  *  getchar.c
6  *
7  *  Copyright (C) 2002  Robert Dickenson <robd@reactos.org>
8  *
9  *  Based on original work Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details
10  *  28/12/1998: Appropriated for Reactos
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25  */
26
27 #include <msvcrt/stdio.h>
28 #include <msvcrt/internal/file.h>
29
30 #undef getchar
31 #undef getwchar
32
33 int
34 getchar(void)
35 {
36   return getc(stdin);
37 }
38
39 /*
40  * @implemented
41  */
42 wint_t
43 getwchar(void)
44 {
45   return getwc(stdin);
46 }