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