summaryrefslogtreecommitdiff
path: root/libkern/toupper.c
blob: 4c0b02aca066d8455b156621c70e9178c5b0f01d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
toupper(int c)
{

	if(c < 'a' || c > 'z')
		return c;
	return (c-'a'+'A');
}

tolower(int c)
{

	if(c < 'A' || c > 'Z')
		return c;
	return (c-'A'+'a');
}