跳转到内容

fdopen : 将打开的文件转换为流

#include <stdio.h>
FILE *fdopen(int fd, const char *mode);
FILE *_fdopen_r(void *reent, int fd, const char *mode);
```### 描述
fdopen 从一个已经打开的文件描述符(例如,由系统子例程 open 而不是 fopen 返回)生成一个 FILE * 类型的文件描述符。mode 参数的含义与 fopen 中的相同。### 返回值
文件指针或 NULL,与 fopen 相同。
---
**权威来源**: BUSMASTER DITA help source `fdopen.dita`, compiled into `BUSMASTER.CHM` with the application.