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