开始学习
< 返回

C 标准库头文件

C 标准库的 API 接口函数由以下头文件提供定义,其中 C89 标准提供了 15 个头文件,其余由后续的标准引入,在使用时需要稍作注意。

头文件 描述
<assert.h> 条件编译宏,将参数与零比较
<complex.h> (C99) 复数运算
<ctype.h> 用来确定包含于字符数据中的类型的函数
<errno.h> 报告错误条件的宏
<fenv.h> (C99) 浮点环境
<float.h> 浮点类型的极限
<inttypes.h> (C99) 整数类型的格式转换
<iso646.h> (C95) 运算符的替代写法
<limits.h> 整数类型的范围
<locale.h> 本地化工具
<math.h> 常用数学函数
<setjmp.h> 非局部跳转
<signal.h> 信号处理
<stdalign.h> (C11) alignasalignof 便利宏
<stdarg.h> 可变参数
<stdatomic.h> (C11) 原子操作
<stdbool.h> (C99) 布尔类型的宏
<stddef.h> 常用宏定义
<stdint.h> (C99) 定宽整数类型
<stdio.h> 输入/输出
<stdlib.h> 基础工具:内存管理程序工具字符串转换随机数算法
<stdnoreturn.h> (C11) noreturn 便利宏
<string.h> 字符串处理
<tgmath.h> (C99) 泛型数学(提供 math.h 和 complex.h 的宏封装)
<threads.h> (C11) 线程库
<time.h> 时间/日期工具
<uchar.h> (C11) UTF-16 和 UTF-32 字符工具
<wchar.h> (C95) 扩展多字节和宽字符工具
<wctype.h> (C95) 用来确定包含于宽字符数据中的类型的函数
Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Please Share Your Feedback
How Can We Improve This Article?
文章目录