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