blob: fcb1de854ee013c236a4cc712243e31ac2284d11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <ctype.h> // for isupper, tolower, tolower_l
#include <locale.h> // for locale_t
#include <sys/cdefs.h> // for __unused, __weak
int tolower(int c)
{
if (isupper(c))
return c | 32;
return c;
}
__weak int tolower_l(int c, locale_t __unused locale)
{
return tolower(c);
}
|