summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/toupper.c
blob: e952acd9b268ed9b486bcc57b286c54bf85ea7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <libc.h>
#include <ctype.h>

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

int toupper_l(int c, locale_t unused locale)
{
	return toupper(c);
}