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