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