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