7b05bad131dfc882cd2821212ba300a7d67fd4a5
[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 int toupper(int c)
7 {
8    if (_isctype (c, _LOWER))
9       return (c + ('A' - 'a'));
10    return(c);
11 }
12
13 #undef towupper
14 int towupper(wint_t c)
15 {
16    if (iswctype (c, _LOWER))
17       return (c + (L'A' - L'a'));
18    return(c);
19 }
20
21 int _toupper(int c)
22 {
23    return (c + ('A' - 'a'));
24 }
25
26 /*
27 wchar_t _towupper(wchar_t c)
28 {
29    return (c + (L'A' - L'a'));
30 }
31 */
32