📄 fd
字号:
@c ----------------------------------------------------------------------
@node fdopen, stdio
@heading @code{fdopen}
@subheading Syntax
@example
#include <stdio.h>
FILE *fdopen(int fd, const char *mode);
@end example
@subheading Description
This function opens a stream-type file that uses the given @var{fd}
file, which must already be open. The file is opened with the modes
specified by @var{mode}, which is the same as for @code{fopen}.
@xref{fopen}
@subheading Return Value
The newly created @code{FILE *}, or @code{NULL} on error.
@subheading Example
@example
FILE *stdprn = fdopen(4, "w");
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -