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