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