2 #include <stdlib.h>
5 char* str1 = "ABDFLjlero我们都是saf";
7 char* ToLower(char s[])
8 {
9 static size_t i=sizeof(s); 10
11 for (i; i>=0; i--) {
12 if (s[i]>"A" && s[i]<"Z") {
13 s[i] += 26;
14 }
15 }
16 return s;
}
19 int A()
20 {
21 printf("old str[%s] after lower[%s]n", str1, ToLower(str1));
22 }