aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/toupper.c
blob: 8f84f32c2bce89f319129854a3362387e9df1815 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <ctype.h>

int toupper(int c)
{
	if (islower(c)) return c & 0x5f;
	return c;
}

int __toupper_l(int c, locale_t l)
{
	return toupper(c);
}

weak_alias(__toupper_l, toupper_l);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif