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