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