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