Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / ctype / tolower.c
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrti.h>
3
4
5 #undef tolower
6 int tolower(int c)
7 {
8 if (_isctype (c, _UPPER))
9 return (c - ('A' - 'a'));
10 return(c);
11 }
12
13 #undef towlower
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 if (_isctype (c, _UPPER))
24 return (c - ('A' - 'a'));
25 return(c);
26 }
27
28 /*
29 wchar_t _towlower(wchar_t c)
30 {
31 if (iswctype (c, _UPPER))
32 return (c - (L'A' - L'a'));
33 return(c);
34 }
35 */
36
37