checkeof
if (checkeof())
while ((getchar() != '\n') && !checkeof())
if (checkeof()) {
static int checkeof(void);