feof和ferror
来源:互联网 发布:linux提示权限不够 编辑:程序博客网 时间:2024/05/16 16:21
feof和ferror
feof
Tests for end-of-file on a stream.
int feof( FILE *stream );
Return Value
The feof function returns a nonzero value after the first read operation that attempts to read past the end of the file. It returns 0 if the current position is not end of file. There is no error return.
Parameter
stream
Pointer to FILE structure
Remarks
The feof routine (implemented both as a function and as a macro) determines whether the end of stream has been reached. When end of file is reached, read operations return an end-of-file indicator until the stream is closed or until rewind, fsetpos, fseek, or clearerr is called against it.
ferror
Tests for an error on a stream.
int ferror( FILE *stream );
Return Value
If no error has occurred on stream, ferror returns 0. Otherwise, it returns a nonzero value.
Parameter
stream
Pointer to FILE structure
Remarks
The ferror routine (implemented both as a function and as a macro) tests for a reading or writing error on the file associated with stream. If an error has occurred, the error indicator for the stream remains set until the stream is closed or rewound, or until clearerr is called against it.
- feof和ferror
- feof ferror
- ferror、feof、clearerr、fileno
- 文件检测函数 ferror feof
- feof & ferror & clearerr 的使用...
- feof(),ferror()文件检测函数
- 用fread和fwrite把一个文件拷贝到另外一个文件,feof ferror bzero
- feof clearerr ferror fileno (翻译 man 3)
- 文件检测函数 feof, ferror,clearerr C库函数
- 文件检测函数 feof, ferror,clearerr C库函数
- C语言再学习 -- EOF、feof函数、ferror函数
- 文件流中读行的正确使用(fgets、feof、ferror)
- C语言再学习 -- EOF、feof函数、ferror函数
- 11-12 标准IO之feof,ferror,clearerr
- 文件检测函数 feof, ferror,clearerr C库函数
- fgets和ferror
- ferror
- ferror
- 别人shell_cron
- 路漫漫其修远兮,吾将上下而求索
- Bash 实例,第一部分---Bourne again shell (bash) 基本编程
- VB关于矩阵的操作问题
- ctag用法
- feof和ferror
- ORACLE字符集 总结
- IT访谈:kgcms放弃Spring支持
- IT访谈:kgcms放弃Spring支持
- jsp cms-金刚cms软件1.3版新版上线
- 用Myeclipse怎样制作jar
- opengl之—gluOtho2d及glViewport
- 对div排序
- 关于MS的项目管理