- 浏览: 279214 次
- 性别:
文章分类
最新评论
标准库<ctype.h>
1 字符测试函数
1> 函数原型均为int isxxxx(int)
2> 参数为int, 任何实参均被提升成整型
3> 只能正确处理处于[0, 127]之间的值
isalpha 'A'~'Z', 'a'~'z'
isdigit '0'~'9'
isxdigit '0'~'9', 'A'~'F', 'a'~'f'
isalnum isalpha || isdigit
islower 'a'~'z'
isupper 'A'~'Z'
isspace
9 '\t' (tab: 水平制表位)
10 '\n' (line feed: 换行)
11 '\v' (home: 垂直制表位)
12 '\f' (form feed: 换页)
13 '\r' (carriage return: 回车)
32 ' ' (space: 空格)
isgraph 33~126
isprint isgraph || ' '
ispunct isgraph && !isalnum
iscntrl 0~31, 127
2 字符映射函数
1> 函数原型为int toxxxx(int)
2> 对参数进行检测, 若符合范围则转换, 否则不变
int tolower(int); 'A'~'Z' ==> 'a'~'z'
int toupper(int); 'a'~'z' ==> 'A'~'Z'
发表评论
-
C中结构体
2013-01-09 15:47 591把结构体保存到文件中,用fwrite()函数: fwrite ... -
关于socket编程中基本函数介绍
2012-11-03 13:57 996源自:http://blog.sina.com.cn/s/bl ... -
C中需要注意的小问题
2012-09-27 08:59 7821.在用scanf()函数读入double型数值时要用%lf的 ... -
指针和多维数组
2011-12-26 10:03 785摘自:《C primer plus》 指针和多位数组 ... -
C中double类型数据的输入和输出
2011-12-19 10:04 12346double a; scanf(" ... -
C中printf()和scanf()函数说明
2011-12-16 19:58 1559下面是对printf()和scanf()函数的说明: ... -
C中转义序列及其含义
2011-12-15 20:27 942转义序列: 序列 ... -
C中各数据类型取值范围
2011-12-15 19:31 13641.标准头文件<limits.h>中包含了 ... -
C中常用的类型转换函数
2011-12-14 17:34 784源自:http://hi.baidu.com/hao_%BF% ... -
C语言格式化输出系统时间
2011-12-14 17:04 5898源自:http://blog.csdn.net/jiadeli ... -
C中目标代码文件,可执行文件和库
2011-12-14 10:19 1932C编程的基本策略是使用程序将源代码文件转换为可执行 ... -
vs2008下vc的库函数及头文件存放位置
2011-12-13 22:14 4504在写C/C++程序时总会在开头包含一些头文件,如:#inclu ... -
malloc()函数
2011-12-12 17:35 0待写 -
用C写的模拟掷骰子程序
2011-12-12 16:47 2320整理自:《C Primer Plus》第五版 此程序包 ... -
C中字符串的输入输出及相关函数
2011-12-27 21:59 3821//本节内容摘自对Stephen Prata的《C Prime ... -
指针的基本操作以及关于指针的注意事项
2011-12-11 17:42 895一. 指针的基本操作有:赋值(assignment),求值(v ... -
关于*与++的优先级
2011-12-11 16:53 1661C中一元运算符*和++具有相等的优先级,但它们在结合时是从右向 ... -
C中关于数组参数的传递
2011-12-09 11:43 893编写一个对数组进行操作的函数,目的是返回数组内所用元素的和。 ... -
C中有关数组的说明
2011-12-09 11:10 746下面介绍一下关于数组的一些说明: 在数组声明时必须 ... -
C语言中对sizeof()和strlen()的说明
2011-12-09 10:01 10931.sizeof函数 sizeof函数返回表达式所占的内存空 ...
相关推荐
C语言函数库,包含 C 标准库、IO 函数、字符处理函数、字符串函数、数学函数、时间和日期函数、其它函数等数百个常用的C语言函数,文档中对常用函数库的函数原型、详细功能、使用示例等进行了详细的介绍说明,。...
* <ctype.h> : Character Class Tests * <errno.h> : Error Codes Reported by (Some) Library Functions * <float.h> : Implementation-defined Floating-Point Limits * <limits.h> : Implementation-defined ...
B.2 字符类测试:<ctype.h> B.3 字符串函数:<string.h> B.4 数学函数:<math.h> B.5 实用函数:<stdlib.h> B.6 诊断:<assert.h> B.7 变量变元表:<stdarg.h> B.8 非局部跳转:<setjmp.h> B.9 信号处理:...
2 字符类测试 <ctype.h> . 19 3 字符串函数 <string.h> . 22 4 数学函数 <math.h> . . . . . . 29 5 实用函数 <stdlib.h> . . . . . 35 6 诊断 <assert.h> . 43 7 变长变元表 <stdarg.h> 44 8 非局部跳转 ...
• <ctype.h> : Character Class Tests • <errno.h> : Error Codes Reported by (Some) Library Functions • <float.h> : Implementation-defined Floating-Point Limits • <limits.h> : Implementation-defined ...
B.2 字符类测试:<ctype.h> B.3 字符串函数:<string.h> B.4 数学函数:<math.h> B.5 实用函数:<stdlib.h> B.6 诊断:<assert.h> B.7 变量变元表:<stdarg.h> B.8 非局部跳转:<setjmp.h> B.9 信号处理:...
#include <ctype.h> //字符处理 #include <errno.h> //定义错误码 #include <float.h> //浮点数处理 #include <fstream.h> //文件输入/输出 #include <iomanip.h> //参数化输入/输出 #include <iostream.h> ...
B.2 字符类测试:<ctype.h> B.3 字符串函数:<string.h> B.4 数学函数:<math.h> B.5 实用函数:<stdlib.h> B.6 诊断:<assert.h> B.7 变量变元表:<stdarg.h> B.8 非局部跳转:<setjmp.h> B.9 信号处理:...
B.2 字符类测试:<ctype.h> B.3 字符串函数:<string.h> B.4 数学函数:<math.h> B.5 实用函数:<stdlib.h> B.6 诊断:<assert.h> B.7 变量变元表:<stdarg.h> B.8 非局部跳转:<setjmp.h> B.9 信号处理:...
B.2 字符类测试:<ctype.h> B.3 字符串函数:<string.h> B.4 数学函数:<math.h> B.5 实用函数:<stdlib.h> B.6 诊断:<assert.h> B.7 变量变元表:<stdarg.h> B.8 非局部跳转:<setjmp.h> B.9 信号处理:...
B.2 字符类测试:<ctype.h> B.3 字符串函数:<string.h> B.4 数学函数:<math.h> B.5 实用函数:<stdlib.h> B.6 诊断:<assert.h> B.7 变量变元表:<stdarg.h> B.8 非局部跳转:<setjmp.h> B.9 信号处理:...
C标准库源码解剖(3):字符处理函数ctype.h和wctype.h.pdf
utf8type.h是一个库,旨在替代具有utf8意识的纯C89语言编写的ctype.h 。 库本身没有依赖关系,但是使用sqlite3的副本生成unicode_data.h文件(仅当您具有要使用的自定义UnicodeData.txt时才需要)。 目标是提供与...
C标准库: 1 输入与输出 <stdio.h> 2 字符类测试 <ctype.h> 3 字符串函数 <string.h> 4 数学函数 <math.h> 5 实用函数 <stdlib.h> 等等
#include <ctype.h> //打开库文件#include <stdio.h>#include <iostream.h>#include <malloc.h>#include <process.h>#include <string.h> #define error 0#define ok 1typedef struct{ int *base; int *top; int ...
C 标准库源代码\CTYPE.H C标准库源代码\CVT.H C标准库源代码\CWCHAR C标准库源代码\CWCTYPE C 标准库源代码\DAYS.C C标准库源代码\DBGDEL.CPP C标准库源代码\DBGHEAP.C C标准库源代码\DBGHOOK.C C标准库源代码\...
转换子程序,函数库为math.h、stdlib.h、ctype.h、float.h char *ecvt(double value,int ndigit,int *decpt,int *sign)将浮点数value 转换成字符串并返回该字符串 char *fcvt(double value,int ndigit,int *decpt,int...
1.字符函数,所在函数库为ctype.h……………………………………………………………………2 2.数学函数,所在函数库为math.h、stdlib.h、string.h、float.h………………………………………2 3.目录函数,所在函数...