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