关于将一个字符串中的小写字母改为大写字母
源码:
#include <stdio.h>void big_lower(char *ops);int main(void){ char *src = "abcdefghIJKlmnopq"; big_lower(src); puts(src); return 0;}void big_lower(char *ops){ while(*ops) { if (*ops >= 'a' && *ops <= 'z') { *ops -= 32; } ops++; }}