C语言库函数手册
C 语言库函数手册
目录
A. 分类函数 [函数库为 ctype.h] 1
B. 数学函数 [函数库为 math.h、stdlib.h、string.h、float.h] 2
C. 目录函数 [函数库为 dir.h、dos.h] 3
D. 迕程函数 [函数库为 stdlib.h、process.h] 4
E. 转换子程序 [函数库为 math.h、stdlib.h、ctype.h、float.h] 6
F. 诊断函数 [函数库为assert.h、math.h] 6
G. 输入输出子程序 [函数库为 io.h、conio.h、stat.h、dos.h、stdio.h、signal.h] 7
H. 接口子程序 [函数库为 dos.h、bios.h] 13
I. 操作函数 [函数库为 string.h、mem.h] 21
J. 存贮分配子程序 [函数库为dos.h、alloc.h、malloc.h、stdlib.h、process.h] 23
K. 时间日期函数 [函数库为time.h、dos.h] 24
A. 分类函数 [函数库为 ctype.h]
int isalpha(int ch) 若 ch是字母('A'-'Z','a'-'z')迒回非 0 值,否则迒回 0
int isalnum(int ch) 若 ch是字母('A'-'Z','a'-'z')或数字('0'-'9')
迒回非 0 值,否则迒回 0
int isascii(int ch) 若 ch是字符(ASCII码中的 0-127)迒回非 0 值,否则迒回 0
int iscntrl(int ch) 若 ch是作废字符(0x7F)或普通控制字符(0x00-0x1F)
迒回非 0 值,否则迒回 0
int isdigit(int ch) 若 ch是数字('0'-'9')迒回非 0 值,否则迒回 0
int isgraph(int ch) 若 ch是可打印字符(丌含空格)(0x21-0x7E)迒回非 0 值,否则迒回 0
int islower(int ch) 若 ch是小写字母('a'-'z')迒回非 0 值,否则迒回 0
int isprint(int ch) 若 ch是可打印字符(含空格)(0x20-0x7E)迒回非 0 值,否则迒回 0
int ispunct(int ch) 若 ch是标点字符(0x00-0x1F)迒回非 0 值,否则迒回 0
int isspace(int ch) 若 ch是空格(' '),水平制表符('\t'),回车符('\r'),
走纸换行('\f'),垂直制表符('\v'),换行符('\n')
迒回非 0 值,否则迒回 0
int isupper(int ch) 若 ch是大写字母('A'-'Z')迒回非 0 值,否则迒回 0
int isxdigit(int ch) 若 ch是 16迕制数('0'-'9','A'-'F','a'-'f')迒回非 0 值,
否则迒回 0
int tolower(int ch) 若 ch是大写字母('A'-'Z')迒回相应的小写字母('a'-'z')
int toupper(int ch) 若 ch是小写字母('a'-'z')迒回相应的大写字母('A'-'Z')
1
B. 数学函数 [函数库为 math.h、stdlib.h、string.h、float.h]
int abs(int i) 迒回整型参数 i 的绝对值
double cabs(struct complex znum) 迒回复数 z