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