xref: /inferno-os/libkern/toupper.c (revision 37da2899f40661e3e9631e497da8dc59b971cbd0)

toupper(int c)1 toupper(int c)
2 {
3 
4 	if(c < 'a' || c > 'z')
5 		return c;
6 	return (c-'a'+'A');
7 }
8 
tolower(int c)9 tolower(int c)
10 {
11 
12 	if(c < 'A' || c > 'Z')
13 		return c;
14 	return (c-'A'+'a');
15 }
16 
17