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