c语言函数大全(简)
分类函数,地点函数库为ctype.hintisalpha(intch)若ch是字母(#39;A#39;-#39;Z#39;,#39;a#39;-#39;z#39;)回来非0值,不然回来0intisalnum(intch)若ch是字母(#39;A#39;-#39;Z#39;,#39;a#39;-#39;z#39;)或数字(#39;0#39;-#39;9#39;)回来非0值,不然回来0intisascii(intch)若ch是字符(ASCII码中的0-127)回来非0值,不然回来0intiscntrl(intch)若ch是报废字符(0x7F)或一般控制字符(0x00-0x1F)回来非0值,不然回来0intisdigit(intch)若ch是数字(#39;0#39;-#39;9#39;)回来非0值,不然回来0intisgraph(intch)若ch是可打印字符(不含空格)(0x21-0x7E)回来非0值,不然回来0intislower(intch)若ch是小写字母(#39;a#39;-#39;z#39;)回来非0值,不然回来0intisprint(intch)若ch是可打印字符(含空格)(0x20-0x7E)回来非0值,不然回来0intispunct(intch)若ch是标点字符(0x00-0x1F)回来非0值,不然回来0intisspace(intch)若ch是空格(#39;#39;),水平制表符(#39;\t#39;),回车符(#39;\r#39;),走纸换行(#39;\f#39;),垂直制表符(#39;\v#39;),换行符(#39;\n#39;)回来非0值,不然回来0intisupper(intch)若ch是大写字母(#39;A#39;-#39;Z#39;)回来非0值,不然回来0intisxdigit(intch)若ch是16进制数(#39;0#39;-#39;9#39;,#39;A#39;-#39;F#39;,#39;a#39;-#39;f#39;)回来非0值,不然回来0inttolower(intch)若ch是大写字母(#39;A#39;-#39;Z#39;)回来相应的小写字母(#39;a#39;-#39;z#39;)inttoupper(intch)若ch是小写字母(#39;a#39;-#39;z#39;)回来相应的大写字母(#39;A#39;-#39;Z#39;)数学函数,地点函数库为math.h、stdlib.h、string.h、float.hintabs(inti)回来整型参数i的绝对值doublecabs(structcomplexznum)回来复数znum的绝对值doublefabs(doublex)回来双精度参数x的绝对值longlabs(longn)回来长整型参数n的绝对值doubleexp(doublex)回来指数函数ex的值doublefrexp(doublevalue,inteptr)回来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的余数doublefrexp(doublevalue,int
eptr)将双精度数value分成尾数和阶doubleatof(char
nptr)将字符串nptr转换成浮点数并回来这个浮点数doubleatoi(char
nptr)将字符串nptr转换成整数并回来这个整数doubleatol(char
nptr)将字符串nptr转换生长整数并回来这个整数char
ecvt(doublevalue,intndigit,int
decpt,int
sign)
C言语函数大全.doc
(Classification function, location function library is ctype.hintisalpha(intch) if ch is a letter (#39;A#39;-#39;Z#39;,#39;a#39;-#39;z#39;) Return non-zero value, otherwise return 0intisalnum(intch) if ch is a letter (#39;A#39;-#39;Z#39;,#39;a#39;-#39;z#39;) or a number (#39;0#39;-#39;9#39;) Returns a non-zero value, otherwise it returns 0intisascii(intch) If ch is a character (0-127 in ASCII code), it returns a non-zero value, otherwise it returns 0intisasctrl( intch) If ch is a scrap character (0x7F) or a general control character (0x00-0x1F), it will return a non-zero value, otherwise it will return 0intisdigit (intch) if ch is a number (#39;0#39;-#39;9#39; ) returns a non-zero value, otherwise it returns 0intisgraph(intch) if ch is a printable character (excluding spaces) (0x21-0x7E) returns a non-zero value, otherwise it returns 0intislower(intch) if ch is a lowercase letter (#39;a# 39;-#39;z#39;) return non-zero value, otherwise return 0intisprint(intch) if ch is a printable character (including spaces) (0x20-0x7E) return non-zero value, otherwise return 0intispunct(intch) if ch It is a punctuation character (0x00-0x1F) and returns a non-zero value, otherwise it returns 0intisspace (intch) if ch is a space (#39;#39;), horizontal tab (#39;\t#39;), carriage return (#39;\r#39;), paper feed (#39;\f#39;), vertical tab (#39;\v#39;), line feed (#39;\n#39 ;) return non-zero value, otherwise return 0intisupper(intch) if ch is uppercase letter (#39;A#39;-#39;Z#39;) return non-zero value, otherwise return 0intisxdigit(intch) if ch is 16 Base number (#39;0#39;-#39;9#39;,#39;A#39;-#39;F#39;,#39;a#39;-#39;f#39 ;) Return non-zero value, otherwise return 0inttolower(intch) If ch is an uppercase letter (#39;A#39;-#39;Z#39;), return the corresponding lowercase letter (#39;a#39;-# 39;z#39;)inttoupper(intch) If ch is a lowercase letter (#39;a#39;-#39;z#39;), return the corresponding uppercase letter (#39;A#39;-#39; Z# 39;) Mathematical functions, where the function library is math.h, stdlib.h, string.h, float.hintabs(inti) returns the absolute value of the integer parameter i doublecabs(structcomplexznum) returns the absolute value of the complex znum doublefabs(doublex) Returns the absolute value of the double precision parameter x longlabs(longn) returns the absolute value of the long integer parameter n doubleexp(doublex) returns the value of the exponential function ex doublefrexp(doublevalue,int
eptr) return value=x
The value of x in 2n, n is stored in eptr doubleldexp(doublevalue,intexp); return value
The value of 2exp doublelog(doublex) returns the value of logex doublelog10(doublex) returns the value of log10x doublepow(doublex, doubley) returns the value of xy doublepow10(intp) returns the value of 10p doublesqrt(doublex) returns the root of x doubleacos(doublex) Return the inverse cosine cos-1(x) value of x, x is the radian doubleasin(doublex) return the horizontal and vertical chord sin-1(x) value of x, x is the radian doubleatan(doublex) Return the horizontal and vertical tangent of x tan-1(x ) value, x is the radian doubleatan2(doubley, doublex) returns the horizontal and vertical tangent tan-1(x) value of y/x, the x of y is the radian doublecos(doublex) returns the cosine cos(x) value of x, x is the radian doublesin (doublex) returns the sine sin(x) value of x, x is the radian doubletan(doublex) returns the tangent tan(x) value of x, x is the radian doublecosh(doublex) returns the hyperbolic cosine cosh(x) value of x, x For radians doublesinh(doublex) returns the hyperbolic sine sinh(x) value of x, x is radians doubletanh(doublex) returns the hyperbolic tangent tanh(x) value of x, x is radians doublehypot(doublex, doubley) returns the right triangle oblique The length of the side (z), x and y are the lengths of the right-angled sides, z2=x2 y2doubleceil(doublex) returns the smallest integer not less than x doublefloor(doublex) returns the largest integer not greater than x voidsrand(unsignedseed) initializes random number generation The generator intrand() generates a random number and returns this number doublepoly(doublex,intn,doublec[]) generates a polynomial from the arguments doublemodf(doublevalue,double
iptr) decomposes the double value value into the mantissa and the order doublefmod(doublex, doubley) returns the remainder of x/y doublefrexp(doublevalue, int
eptr) divides the double value value into the mantissa and the order doubleatof(char
nptr) converts the string nptr to a float and returns this float doubleatoi(char
nptr) converts the string nptr to an integer and returns this integer doubleatol(char
nptr) converts the string nptr to a long integer and returns this integer char
ecvt(doublevalue,intndigit,int
decpt,int
sign)
C language function encyclopedia.doc)
页:
[1]