update for HEAD-2003091401
[reactos.git] / lib / msvcrt / ctype / toupper.c
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/ctype.h>
3
4
5 #undef toupper
6 /*
7  * @implemented
8  */
9 int toupper(int c)
10 {
11    if (_isctype (c, _LOWER))
12       return (c + ('A' - 'a'));
13    return(c);
14 }
15
16 #undef towupper
17 /*
18  * @implemented
19  */
20 int towupper(wint_t c)
21 {
22    if (iswctype (c, _LOWER))
23       return (c + (L'A' - L'a'));
24    return(c);
25 }
26
27 /*
28  * @implemented
29  */
30 int _toupper(int c)
31 {
32    return (c + ('A' - 'a'));
33 }
34
35 /*
36 wchar_t _towupper(wchar_t c)
37 {
38    return (c + (L'A' - L'a'));
39 }
40 */
41