相关疑难解决方法(0)

tolower()不工作

下面的代码片段用于将字符串转换为小写.

int main()
{
    unsigned char s[] = "AbS.d_";

    tolower(s);
    printf("%s\n", s);

    return 0;
}
Run Code Online (Sandbox Code Playgroud)

我得到的输出为:

AbS.d_
Run Code Online (Sandbox Code Playgroud)

为什么字符串没有被转换?

c tolower

1
推荐指数
2
解决办法
2775
查看次数

标签 统计

c ×1

tolower ×1