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