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