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