跳到主要内容

tolower

注意

这个$函数以小写字母开头。

描述

将指定字符转换为小写形式。

参数名说明
c需要转换的字符

返回值

返回对应字符的小写 ASCII 编码值

示例代码

public OnPlayerText(playerid, text[])
{
text[0] = tolower(text[0]);
// 将输入文本的首字母转换为小写
return 1;
}

相关函数

  • toupper: 将单个字符转换为大写形式