ref: 950206e6394fe75a3b9bfebd4560128a686046db dir: /src/libc/stdio/ferror.c/
#include <stdio.h> #undef ferror int ferror(FILE *fp) { return fp->flags & _IOERR; }