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