2025年C语言标准库函数大全(ctype、time 、stdio、stdlib、math、string)

C语言标准库函数大全(ctype、time 、stdio、stdlib、math、string)文章目录 C 语言函数库 一 ctype h 二 math h 三 stdio h 四 stdlib h 五 time h 六 string h 文档资料 C 语言函数库 C 语言的常用的标准头文件有 string h time h stdlib h stdio h math h ctype h

大家好,我是讯享网,很高兴认识大家。


讯享网

文章目录

  • C语言函数库:
    • 一. <ctype.h>
    • 二. <math.h>
    • 三. <stdio.h>
    • 四. <stdlib.h>
    • 五. <time.h>
    • 六. <string.h>
  • 文档资料

C语言函数库:

C语言的常用的标准头文件有 :

<ctype.h> <time.h> <stdio.h>

<stdlib.h> <math.h> <string.h>

一. <ctype.h>

序号

函数原型

功能

1

int iscntrl(int c)

判断字符c是否为控制字符。

2

int isalnum(int c)

判断字符c是否为字母或数字

3

int isalpha(int c)

判断字符c是否为英文字母

4

int isascii(int c)

判断字符c是否为ascii码

5

int isblank(int c)

判断字符c是否为TAB或空格

6

int isdigit(int c)

判断字符c是否为数字

7

int isgraph(int c)

判断字符c是否为除空格外的可打印字符

8

int islower(int c)

判断字符c是否为小写英文字母

9

int isprint(int c)

判断字符c是否为可打印字符(含空格)

10

int ispunct(int c)

判断字符c是否为标点符号

11

int isspace(int c)

判断字符c是否为空白符

12

int isupper(int c)

判断字符c是否为大写英文字母

13

int isxdigit(int c)

判断字符c是否为十六进制数字

14

int toascii(int c)

将字符c转换为ascii码

15

int tolower(int c)

将字符c转换为小写英文字母

16

int toupper(int c);

将字符c转换为大写英文字母

二. <math.h>

序号

函数原型

功能

1

float fabs(float x)

求浮点数x的绝对值

2

int abs(int x)

求整数x的绝对值

3

float acos(float x)

求x(弧度表示)的反余弦值

4

float asin(float x)

求x(弧度表示)的反正弦值

5

float atan(float x)

求x(弧度表示)的反正切值

6

float atan2(float y, float x)

求y/x(弧度表示)的反正切值

7

float ceil(float x)

求不小于x的最小整数

8

float cos(float x)

求x(弧度表示)的余弦值

小讯
上一篇 2025-03-13 19:43
下一篇 2025-03-14 19:11

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/101094.html