ref: 6ae1553550ce5ed7780482765cabacc3fa29a50d dir: /lib/c/feof.c/
#include <stdio.h> #undef feof int feof(FILE *fp) { return fp->flags & _IOEOF; }