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