您的位置:首页 > 其它

strlwr

2016-06-15 19:53 204 查看

原型

char *strlwr(char *str, char ch, unsigned n);

功能

字符串中的大写字母转换为小写。

返回值

返回指向str的指针

示例

#include <string.h>
#include <iostream.h>
void main(void)
{
char sTmp[100];
sTmp[0] = '\0';
strcpy(sTmp,"Golden Global View");
cout<<sTmp<<endl;
cout<<strlwr(sTmp)<<endl;
}


结果:

Golden Global View
golden global view
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  strlwr