code: purgatorio

ref: 4bc20df7142ce5e02c7fb49a33eefdc7715ff726
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');
}