check a file for end of file without checking for 0 in c code example Example: how to check if you are at the end of an file while(!feof(stdin))