code: 9ferno

ref: 916fe767404498e0108f7b1d3fd0994ae19913f3
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');
}