foef clearerr ferror函数
来源:互联网 发布:中国游戏产业 知乎 编辑:程序博客网 时间:2024/06/03 12:16
SYNOPSIS
#include <stdio.h>
void clearerr(FILE *stream);
int feof(FILE *stream);
int ferror(FILE *stream);
int fileno(FILE *stream);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
fileno(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE
DESCRIPTION
The function clearerr() clears the end-of-file and error indicators for the stream pointed to by stream.
The function feof() tests the end-of-file indicator for the stream pointed to by stream, returning nonzero if it is set. The end-of-file indicator can
only be cleared by the function clearerr().
The function ferror() tests the error indicator for the stream pointed to by stream, returning nonzero if it is set. The error indicator can only be reset
by the clearerr() function.
The function fileno() examines the argument stream and returns its integer descriptor.
For nonlocking counterparts, see unlocked_stdio(3).
ERRORS
These functions should not fail and do not set the external variable errno. (However, in case fileno() detects that its argument is not a valid stream, it
must return -1 and set errno to EBADF.)
CONFORMING TO
The functions clearerr(), feof(), and ferror() conform to C89 and C99.
SEE ALSO
open(2), fdopen(3), stdio(3), unlocked_stdio(3)
COLOPHON
This page is part of release 3.24 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at
http://www.kernel.org/doc/man-pages/.
- foef clearerr ferror函数
- ferror、feof、clearerr、fileno
- 文件检测函数 feof, ferror,clearerr C库函数
- 文件检测函数 feof, ferror,clearerr C库函数
- 文件检测函数 feof, ferror,clearerr C库函数
- feof & ferror & clearerr 的使用...
- 标准文件操作的函数,fprintf,fseek,fread,fwrite,feof,ferror, clearerr
- feof clearerr ferror fileno (翻译 man 3)
- 11-12 标准IO之feof,ferror,clearerr
- clearerr
- clearerr
- 读写流-fgetc、fputc、fgets、fputs、fread、ferror、fwrite、clearerr、ungetc
- ferror
- ferror
- 文件检测函数 ferror feof
- feof(),ferror()文件检测函数
- 标准 C I/O 之 clearerr() 函数
- 标准 C I/O 之 ferror () 函数
- 终于解决了PADS,Altium,ORCAD的相互转换问题
- 同步,异步,全双工,半双工区别!
- WideCharToMultiByte和MultiByteToWideChar函数
- Introduction to Windows Programming
- 3栏布局
- foef clearerr ferror函数
- SDK Platform Tools component is missing! Please ×××× Install×××解决方法
- Android 内核源代码交叉编译(创建自己的模拟器内核,哈哈终于搞定了)
- 通过拼sql语句实现分页读取数据
- Struts2.2.1配置时需要多加3个JAR包
- Gabor滤波参数详细解析
- apache发布的cxf+spring案例
- 【转】强大的poj分类
- IE掉FireFox