Skip to content

Commit 703e126

Browse files
committed
Merge branch 'main' of https://github.com/Mdr-C-Tutorial/C
2 parents 4336c92 + 3853907 commit 703e126

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/教程/正文/语法和标准库/11_标准库概述.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ C 标准库是 C 语言的标准组成部分,提供了一系列预定义的函
186186

187187
提供位操作函数和宏(C23 起):
188188

189-
- 位旋转: `rotl()`, `rotr()` (左旋、右旋)
190-
- 位计数: `countl_zero()`, `countl_one()`, `countr_zero()`, `countr_one()`, `popcount()` (计算 0/1 位)
191-
- 位宽: `bit_width()` (有效位数)
192-
- 第一个设置位: `has_single_bit()`, `bit_ceil()`, `bit_floor()`
193-
- 字节序: `__STDC_ENDIAN_LITTLE__`, `__STDC_ENDIAN_BIG__`, `__STDC_ENDIAN_NATIVE__`
189+
- 位旋转`rotl()`, `rotr()` (左旋、右旋)
190+
- 位计数`countl_zero()`, `countl_one()`, `countr_zero()`, `countr_one()`, `popcount()` (计算 0/1 位)
191+
- 位宽`bit_width()` (有效位数)
192+
- 第一个设置位`has_single_bit()`, `bit_ceil()`, `bit_floor()`
193+
- 字节序`__STDC_ENDIAN_LITTLE__`, `__STDC_ENDIAN_BIG__`, `__STDC_ENDIAN_NATIVE__`
194194

195195
### `<stdckdint.h>`
196196

docs/教程/正文/语法和标准库/14_输入输出/14_2_文件操作.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ FILE* fopen(const char* filename, const char* mode);
2424
2525
常用的模式有:
2626
27-
| 文件访问模式字符串 | 含义 | 解释 | 若文件已存在的动作 | 若文件不存在的动作 |
28-
| :----------------: | :---: | :------------: | :----------------: | :----------------: |
29-
| `"r"` | 读 | 打开文件以读取 | 从头读 | 打开失败 |
30-
| `"w"` | 写 | 创建文件以写入 | 销毁内容 | 创建新文件 |
31-
| `"a"` | 附加 | 附加到文件 | 写到结尾 | 创建新文件 |
27+
| 文件访问模式字符串 | 含义 | 解释 | 若文件已存在的动作 | 若文件不存在的动作 |
28+
| :----------------: | :--: | :------------: | :----------------: | :----------------: |
29+
| `"r"` | 读 | 打开文件以读取 | 从头读 | 打开失败 |
30+
| `"w"` | 写 | 创建文件以写入 | 销毁内容 | 创建新文件 |
31+
| `"a"` | 附加 | 附加到文件 | 写到结尾 | 创建新文件 |
3232
3333
字符串的其余部分可以包含以下任意顺序的字符,并进一步影响文件的打开方式:
3434

0 commit comments

Comments
 (0)