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