ctype库函数

#include<ctype.h>

or #include<cctype.h>

int isalpha(char ch) 检查ch是否是字母   是字母返回非0(在vs2015中为2),否则返回0
int iscntrl(int ch)   检查ch是否 控制字符 是返回非0,否则返回0
int isdigit(char ch) 检查ch是否是数字(0-9) 是返回非0,否则返回0
int isgraph(int ch)   检查ch是否可显示 字符 是返回非0,否则返回0
int islower(int ch)   检查ch是否小写字母(a-z) 是返回非0,否则返回0
int isupper(int ch)   检查ch是否是大写字母(A-Z) 是返回非0,否则返回0

int tolower(int ch)将ch字符转换为小写字母            返回与ch相应的小写字母

int toupper(int ch) 将ch 字符 转换成大写字母   返回 与ch相应的大写字母
int isalnum(int ch) 检查ch是否是字母或数字 是字母或数字返回非0,否则返回0
int isprint(int ch)   检查ch是否是可打印 字符 (包括空格)  是返回非0,否则返回0
int  ispunct (int ch) 检查ch是否是标点 字符   是返回非0,否则返回0
int isspace(int ch)   检查ch是否是 空格符/ 跳格符( 控制字符 )/换行符   是返回非0,否则返回0
int  isxdigit (int ch) 检查ch是否是一个16进制数学 字符   是返回非0,否则返回0

int isascii(int ch)测试参数是否是ASCII码0-127  是返回非0,否则返回0


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值