xref: /plan9/sys/src/libc/port/toupper.c (revision ec59a3ddbfceee0efe34584c2c9981a5e5ff1ec4)
1 #include	<ctype.h>
2 
3 int
4 toupper(int c)
5 {
6 
7 	if(c < 'a' || c > 'z')
8 		return c;
9 	return _toupper(c);
10 }
11 
12 int
13 tolower(int c)
14 {
15 
16 	if(c < 'A' || c > 'Z')
17 		return c;
18 	return _tolower(c);
19 }
20