C语言标准库函数.docx
上传人:sy****28 上传时间:2024-09-13 格式:DOCX 页数:22 大小:48KB 金币:14 举报 版权申诉
预览加载中,请您耐心等待几秒...

C语言标准库函数.docx

C语言标准库函数.docx

预览

免费试读已结束,剩余 12 页请下载文档后查看

14 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

TurboC2.0函数中文说明大全分类函数,所在函数库为ctype.hintisalpha(intch)若ch是字母('A'-'Z','a'-'z')返回非0值,否则返回0intisalnum(intch)若ch是字母('A'-'Z','a'-'z')或数字('0'-'9'),返回非0值,否则返回0intisascii(intch)若ch是字符(ASCII码中的0-127)返回非0值,否则返回0intiscntrl(intch)若ch是作废字符(0x7F)或普通控制字符(0x00-0x1F),返回非0值,否则返回0intisdigit(intch)若ch是数字('0'-'9')返回非0值,否则返回0intisgraph(intch)若ch是可打印字符(不含空格)(0x21-0x7E)返回非0值,否则返回0intislower(intch)若ch是小写字母('a'-'z')返回非0值,否则返回0intisprint(intch)若ch是可打印字符(含空格)(0x20-0x7E)返回非0值,否则返回0intispunct(intch)若ch是标点字符(0x00-0x1F)返回非0值,否则返回0intisspace(intch)若ch是空格(''),水平制表符('\t'),回车符('\r'),走纸换行('\f'),垂直制表符('\v'),换行符('\n'),返回非0值,否则返回0intisupper(intch)若ch是大写字母('A'-'Z')返回非0值,否则返回0intisxdigit(intch)若ch是16进制数('0'-'9','A'-'F','a'-'f')返回非0值,否则返回0inttolower(intch)若ch是大写字母('A'-'Z')返回相应的小写字母('a'-'z')inttoupper(intch)若ch是小写字母('a'-'z')返回相应的大写字母('A'-'Z')数学函数,所在函数库为math.h、stdlib.h、string.h、float.hintabs(inti)返回整型参数i的绝对值doublecabs(structcomplexznum)返回复数znum的绝对值doublefabs(doublex)返回双精度参数x的绝对值longlabs(longn)返回长整型参数n的绝对值doubleexp(doublex)返回指数函数ex的值doublefrexp(doublevalue,int*eptr)返回value=x*2n中x的值,n存贮在eptr中doubleldexp(doublevalue,intexp);返回value*2exp的值doublelog(doublex)返回logex的值doublelog10(doublex)返回log10x的值doublepow(doublex,doubley)返回xy的值doublepow10(intp)返回10p的值doublesqrt(doublex)返回x的开方doubleacos(doublex)返回x的反余弦cos-1(x)值,x为弧度doubleasin(doublex)返回x的反正弦sin-1(x)值,x为弧度doubleatan(doublex)返回x的反正切tan-1(x)值,x为弧度doubleatan2(doubley,doublex)返回y/x的反正切tan-1(x)值,y的x为弧度doublecos(doublex)返回x的余弦cos(x)值,x为弧度doublesin(doublex)返回x的正弦sin(x)值,x为弧度doubletan(doublex)返回x的正切tan(x)值,x为弧度doublecosh(doublex)返回x的双曲余弦cosh(x)值,x为弧度doublesinh(doublex)返回x的双曲正弦sinh(x)值,x为弧度doubletanh(doublex)返回x的双曲正切tanh(x)值,x为弧度doublehypot(doublex,doubley)返回直角三角形斜边的长度(z),x和y为直角边的长度,z2=x2+y2doubleceil(doublex)返回不小于x的最小整数doublefloor(doublex)返回不大于x的最大整数voidsrand(unsignedseed)初始化随机数发生器intrand()产生一个随机数并返回这个数doublepoly(doublex,intn,doublec[])从参数产生一个多项式doublemodf(doublevalue,double*iptr)将双精度数value分解成尾数和阶doublefmod(doublex,doubley)返回x/y的