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