summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/gen/toupper.c
blob: eb1e8efd534d45b8829d83b2a8b57f383e6f36de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include	<ctype.h>

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');
}