blob: 3f7ebf43d3684502e74df659550fe0043dcd160d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <ctype.h> // for islower, toupper, toupper_l
#include <libc.h> // for __unused
#include <locale.h> // for locale_t
int toupper(int c)
{
if (islower(c))
return c & 0x5f;
return c;
}
int toupper_l(int c, locale_t __unused locale)
{
return toupper(c);
}
|