setfileno.c
来自「gcc-2.95.3 Linux下最常用的C编译器」· C语言 代码 · 共 18 行
C
18 行
/* Some known programs (xterm, pdksh?) non-portably change the _file field of s struct _iobuf. This kludge allows the same "functionality". This code is an undocumented feature for iostream/stdio. Use it at your own risk. */#include "libioP.h"#include "stdio.h"voidsetfileno(fp, fd) _IO_FILE* fp; int fd;{ CHECK_FILE(fp, ); if ((fp->_flags & _IO_IS_FILEBUF) != 0) fp->_fileno = fd;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?