Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / crtdll / 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 wchar_t towlower(wchar_t c)
14 {
15 if (iswctype (c, _UPPER))
16 return (c - (L'A' - L'a'));
17 return(c);
18 }
19
20 int _tolower(int c)
21 {
22 if (_isctype (c, _UPPER))
23 return (c - ('A' - 'a'));
24 return(c);
25 }
26
27 /*
28 wchar_t _towlower(wchar_t c)
29 {
30 if (iswctype (c, _UPPER))
31 return (c - (L'A' - L'a'));
32 return(c);
33 }
34 */
35
36