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