:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[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 wchar_t towupper(wchar_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    if (_isctype (c, _LOWER))
24       return (c + ('A' - 'a'));
25    return(c);
26 }
27
28 /*
29 wchar_t _towupper(wchar_t c)
30 {
31    if (iswctype (c, _LOWER))
32       return (c + (L'A' - L'a'));
33    return(c);
34 }
35 */
36