原型:extern int tolower(int c);
用法:#include <ctype.h>
功能:将字符c转换为小写英文字母
说明:如果c为大写英文字母,则返回对应的小写字母;否则返回原来的值。
举例:// tolower.c #include <syslib.h> #include <ctype.h> main() { char *s="Hello, World!"; int i; clrscr(); // clear screen printf("%s\n",s); for(i=0;i<strlen(s);i++) { putchar(tolower(s[i])); } getchar(); return 0; }相关函数:toupper