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