标准
文档:https://en.cppreference.com/w/c/header
标准与实现
标准:提出要求 实现:完成提出的要求
C语言的标准:
Linux下的glibc实现
常用的头文件和接口
- <assert.h> Conditionally compiled macro that compares its argument to zero
- <ctype.h> Functions to determine the type contained in character data
- <errno.h> Macros reporting error conditions
- <fenv.h> (C99) Floating-point environment
- <float.h> Limits of float types
- <inttypes.h> (C99) Format conversion of integer types
- <limits.h> Sizes of basic types
- <math.h> Common mathematics functions
- <signal.h> Signal handling
- <stdarg.h> Variable arguments
- <stdatomic.h> (C11) Atomic types
- <stdbool.h> (C99) Macros for boolean type
- <stddef.h> Common macro definitions
- <stdint.h> (C99) Fixed-width integer types
- <stdio.h> Input/output
- <stdlib.h> General utilities: memory management, program utilities, string conversions, random numbers
- <string.h> String handling
- <time.h> Time/date utilities