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