clearerr函数
概要:
#include <stdio.h> void clearerr(FILE *stream);
描述:
该函数清除参数stream指向流的文件末尾指示符和错误指示符。
参数:
FILE *stream
指向打开流的指针。
返回值:
无。
范例:
|
|
输出:
The end-of-file indicator is set.
The end-of-file indicator is not set.
相关内容:
| feof | 测试文件末尾指示符的函数。 |
| ferror | 测试错误指示符的函数。 |
| perror | 输出错误信息的函数。 |
主要参考资料: