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