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