summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/toupper.c
blob: 9dd4c8da665ab5bbce73f55321bdb8c29960e9ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <ctype.h>     // for islower, toupper, locale_t, toupper_l
#include <sys/cdefs.h> // for __unused

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

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