《Linux函数调用手册》之___
tolower
将大写字母转换成小写字母
定义:
int tolower(int c);
表头文件:
#include <ctype.h>
说明:
若参数c为大写字母则将该对应的小写字母返回。
返回值:
返回转换后的小写字母, 若不须转换则将参数c值返回。
相关函数:
isalpha, toupper
示例:
/* 将s字符串内的大写字母转换成小写字母*/ #include
main() { char s[]="aBcDeFgH12345;!#$"; int i; printf("before tolower() : %s\n",s); for(i=0;I
执行:
before tolower() : aBcDeFgH12345;!#$
after tolower() : abcdefgh12345;!#$
返回顶部
|
《Linux函数调用大全》
|
《Linux命令大全》
|
Linux专栏