FCLOSE(3) | Linux Programmer's Manual | FCLOSE(3) |
fcloseall - 关闭所有打开的流
#define _GNU_SOURCE
#include <stdio.h>
int fcloseall(void);
函数 fcloseall 将所有打开的流与它们底层的文件或功能集合断开。任何缓冲的数据都将首先被写入,使用 fflush(3) 。注意标准流 (stdin,stdout 和 stderr) 也被关闭。
这个函数总是返回 0。
fclose(3), close(2), fflush(3), fopen(3), setbuf(3)
函数 fcloseall 是一个 GNU 扩展。
本页面中文版由中文
man 手册页计划提供。
中文 man
手册页计划:https://github.com/man-pages-zh/manpages-zh
1998-04-10 | GNU |