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