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