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