code: 9ferno

ref: 80be5158599a247dff7f7701cc883c118b15eaa6
dir: /libkern/toupper.c/

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