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