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