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