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