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