Skip to content

Commit

Permalink
docs(file): fixed #101
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Jun 8, 2024
1 parent 20d563f commit a0b851f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ C 语言的文件操作函数的设计是,如果遇到文件结尾,就返回
`freopen()`用于新打开一个文件,直接关联到某个已经打开的文件指针。这样可以复用文件指针。它的原型定义在头文件`stdio.h`

```c
FILE* freopen(char* filename, char* mode, FILE stream);
FILE* freopen(char* filename, char* mode, FILE* stream);
```
它跟`fopen()`相比,就是多出了第三个参数,表示要复用的文件指针。其他两个参数都一样,分别是文件名和打开模式。
Expand Down

0 comments on commit a0b851f

Please sign in to comment.