ferror (3) Linux Manual Page
clearerr, feof, ferror, fileno – check and reset stream status 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 DescriptionThe function clearerr() clears the end-of-file and error indicators for the stream pointed to by stream. The function feof() tests the…
