summaryrefslogtreecommitdiff
path: root/src/ctype/toupper.c
blob: 4e74a55c60a622dce6330c20b4217a3b5c0385d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);