tolower C · 字符判断
把大写字母转换成小写;非大写字符保持不变。
怎么用
int c = tolower(字符);
小例子
#include <stdio.h>
#include <ctype.h>
int main(void) {
printf("%c", tolower('A'));
return 0;
}
运行结果
输出 a
提醒:返回值是 int,打印字符时要转成 char
在代码里遇到不认识的词?打开代码点读机,点一下就懂 → ← C全部词条