ctype.h
来源:互联网 发布:老公玩galgame知乎 编辑:程序博客网 时间:2024/05/16 10:51
0818
主要提供两类重要的函数:字符测试函数和字符大小转化函数。
提供的函数中都以int类型为参数,并返回一个int类型的值。
实参类型应该隐式转换或者显示转换为int类型。
int isalnum(int c); 判断是否是字母(8)或数字(0)。
int isalpha(int c); 判断是否是字母(1024)。0
int iscntrl(int c); 判断是否是控制字符。
int isdigit(int c); 判断是否是数字。
int isgraph(int c);判断是否是可显示字符32768。0
int islower(int c); 判断是否是小写字母512。0
int isupper(int c); 判断是否是大写字母256。0
int isprint(int c); 判断是否是可显示字符16384。
int ispunct(int c); 判断是否是标点字符4。0
int isspace(int c); 判断是否是空白字符8192 0
int isxdigit(int c); 判断字符是否为16进制。
int tolower(int c); 转换为小写字母。
int toupper(int c); 转换为大写字母。
===================================
1223
使用ctype头文件对字符进行处理简单快捷1,除转换函数外,
基本上返回值不为0可认为字符符合条件
0 0
- ctype.h
- ctype.h
- ctype.h
- <ctype.h>
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h
- ctype.h中函数
- test for ctype.h
- ctype.h库
- ctype.h里函数
- 写在国际禁毒日的话
- java中的绘制函数探索
- 为贯彻科学发展观,建设和谐社会,实现中华民族的伟大复兴的一揽子倡议
- 新浪微博OAuth认证
- IOS开发之1-----copy语法的基本数据类型的使用01
- ctype.h
- 人民群众喜欢什么样的社会主义
- C语言:贪吃蛇,用指针数组和字符型数组编写。
- 让慈善在创新中飞得更高更远
- c++模板的一些语法
- maven常用命令集
- Python内置的字符串处理函数整理
- 怀念雷锋
- 文章极性值