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