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