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