C ctype toupper() 函数
定义和用法
toupper()
函数返回大写字符的 ASCII 值。如果该字符不是大写字符,则按原样返回值。
toupper()
函数定义在 <ctype.h>
头文件中。
语法
int toupper(int c);
参数值
参数 | 描述 |
---|---|
c | 必需。字符的 ASCII 值或实际字符 |
技术详情
返回 | 一个 int 值,表示字符大写版本的 ASCII 值。 |
---|
toupper()
函数返回大写字符的 ASCII 值。如果该字符不是大写字符,则按原样返回值。
toupper()
函数定义在 <ctype.h>
头文件中。
int toupper(int c);
参数 | 描述 |
---|---|
c | 必需。字符的 ASCII 值或实际字符 |
返回 | 一个 int 值,表示字符大写版本的 ASCII 值。 |
---|
如果您想将 W3Schools 服务用于教育机构、团队或企业,请发送电子邮件给我们
sales@w3schools.com
如果您想报告错误,或想提出建议,请发送电子邮件给我们
help@w3schools.com