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