isspace函数
2016-04-11 11:12
423 查看
isspace,是一种计算机用语,主要用于检查参数c是否为空格字符。
函数说明
检查参数c是否为空格字符,也就是判断是否为空格(' ')、水平定位字符
('\t')、归位键('\r')、换行('\n')、垂直定位字符('\v')或翻页('\f')的情况。[1]
返回值
若参数c为空格字符,则返回TRUE,否则返回NULL(0)。
附加说明
此为宏定义,非真正函数。
/*将字符串str[]中内含的空格字符找出,并显示空格字符的ASCII码*/
执行
str[4] is a white-space character:32
str[7] is a white-space character:32
str[10] is a white-space character:9 /* \t */
str[16] is a white-space character:10 /* \n */
函数说明
检查参数c是否为空格字符,也就是判断是否为空格(' ')、水平定位字符
('\t')、归位键('\r')、换行('\n')、垂直定位字符('\v')或翻页('\f')的情况。[1]
返回值
若参数c为空格字符,则返回TRUE,否则返回NULL(0)。
附加说明
此为宏定义,非真正函数。
/*将字符串str[]中内含的空格字符找出,并显示空格字符的ASCII码*/
str[4] is a white-space character:32
str[7] is a white-space character:32
str[10] is a white-space character:9 /* \t */
str[16] is a white-space character:10 /* \n */
相关文章推荐
- JAVA学习---集合系列---LinkedList
- 网络中的A类、B类、C类地址的划分
- If 条件表达式
- postfix队列管理
- ThreadLocal认知学习
- 报错:failed to get the task for process XXX(解决方案)
- 【Java基础】--构造函数
- Windows 8虚拟机不能全屏的解决方法
- C++32各个基本类型字节数
- 给出高斯模糊的shader实现
- Swiper使用
- struts2中<s:select>标签的使用
- MySQL数据表的操作
- 如何划分子网
- 8、数据库的备份(mongodump)和恢复(mongorestore)---> 备份具体的数据库
- React-native 环境搭建
- 深复制与浅复制
- Spring中的事务管理
- iOS图片设置圆角的三种方式
- Handler:Android异步消息处理机制完全解析