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