update for HEAD-2003091401
[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 /*
6  * @implemented
7  */
8 int tolower(int c)
9 {
10    if (_isctype (c, _UPPER))
11        return (c - ('A' - 'a'));
12    return(c);
13 }
14
15 #undef towlower
16 /*
17  * @implemented
18  */
19 int towlower(wint_t c)
20 //wchar_t towlower(wchar_t c)
21 {
22    if (iswctype (c, _UPPER))
23        return (c - (L'A' - L'a'));
24    return(c);
25 }
26
27 /*
28  * @implemented
29  */
30 int _tolower(int c)
31 {
32    return (c - ('A' - 'a'));
33 }
34
35 /*
36 int towlower(wint_t);
37 int towupper(wint_t);
38
39 wchar_t _towlower(wchar_t c)
40 {
41    return (c - (L'A' - L'a'));
42 }
43 */
44
45