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