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