go top

百科

setmode

函数名: setmode 功 能: 设置打开文件方式 用 法: int setmode(int handle, unsigned mode); 程序例: #include #include #include int main(void) { FILE *fp; int result; int fd; fp = fopen(".\\OUTPUT.txt", "r"); result = setmode(fileno(fp), O_TEXT); if (result == -1) perror("Mode not available\n"); else printf("Mode successfully switched\n"); fclose(fp); } //VC 6.0 下面编译执行通过

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定