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