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