tolower
函数名: tolower
功 能: 把字符转换成小写字母,非字母字符不做出处理
用 法: int tolower(int c);
程序例:
#include <iostream>
#include <cstring>
#include <ctype.h>
using namespace std;
int main()
{
int length;
char str[20] = "THIS IS A STRING";
length = strlen(str);
for (int i=0; i < length; ++i)
str[i] = tolower(str[i]);
printf("%s
",str);
return 0;
}