5. feof()
功 能: 检测流上的文件结束符
The function feof() tests the end-of-file indicator for the stream
pointed to by stream, returning non-zero if it is set. The end-of-file
indicator can only be cleared by the functionclearerr().
如果文件结束,则返回非0值,否则返回0,文件结束符只能被clearerr()清除
用法: int feof(FILE *stream);
本文详细介绍了feof()函数的功能和使用方法。feof()用于检测文件流是否到达结束状态,若到达则返回非零值,否则返回0。值得注意的是,只有通过clearerr()函数才能清除文件结束标志。

被折叠的 条评论
为什么被折叠?



