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