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