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