summaryrefslogtreecommitdiff
path: root/src/ctype/toupper.c
blob: 1799f0307789a3336b28d82e78203a0482eb02ea (plain) (blame)
1
2
3
4
5
6
7
#include <ctype.h>

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