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