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