void uppercase(char *str,char *str2)
{
char *pos = str;
char *pos1 = str2;
while(*pos)
{
if(*pos>='a'&&*pos<='z')
*pos1 = *pos + 'A'-'a';
else
*pos1 = *pos;
pos++;
pos1++;
}
//if(pos1-str2!=nSize)
*pos1 = 0;
}
将字符串转换为大写
最新推荐文章于 2023-12-03 14:28:23 发布