isxdigit
来源:互联网 发布:大数据 crm 市场规模 编辑:程序博客网 时间:2024/04/30 05:57
isxdigit(测试字符是否为16进制数字) 相关函数 isalnum,isdigit 表头文件 #include<ctype.h> 定义函数 int isxdigit (int c) 函数说明 检查参数c是否为16进制数字,只要c为下列其中一个情况则返回TRUE。16进制数字:0123456789ABCDEF。 参数类型为int,但是可以直接将char 类型数据传入. 例如:isxdigit('a') 返回为1. 返回值 若参数c为16进制数字,则返回1,否则返回0。 附加说明 此为宏定义,非真正函数。 范例 /*找出字符串str中为十六进制数字的字符*/ #include <ctype.h> #include <stdio.h> int main() { char str[]="123c@#FDsP[e?"; int i; for(i=0;str[i]!='\0';i++) if(isxdigit(str[i])) printf("%c is a hexadecimal digits\n",str[i]); } 执行 1 is a hexadecimal digits 2 is a hexadecimal digits 3 is a hexadecimal digits c is a hexadecimal digits F is a hexadecimal digits D is a hexadecimal digits e is a hexadecimal digits
- isxdigit
- isxdigit
- isxdigit
- isxdigit() 函数
- isxdigit等
- isxdigit <ctype.h> <cctype>
- isxdigit ( )【C语言库函数源代码】
- isxdigit字符串测试函数应用实例
- isalnum,isalpha,isdigit.....isxdigit,ispunt等字符函数的检测程序
- 字符测试函数:C语言isxdigit()函数----判断字符是否为16进制数字
- joj2528
- Oracle DBVERIFY 工具介绍
- C++学习笔记(17)——虚函数与构造函数、析构函数
- Box2D v2.1.0用户手册翻译 - 第10章 世界(World Class)
- 兴趣
- isxdigit
- C#学习笔记2——反射
- 栈和堆的区别
- Class.forName() 初始化、Thread.currentThread().getContextClassLoader().getResourceAsStream
- 关于xwork(struts2)拦截器体系的思考与分析
- HTML META的用途,功能和属性
- objective-c 获取当前毫秒数
- Delphi DataModule使用方法
- 判断窗口打开