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