how to check if string is eof c in scanf code example Example: how to check if you are at the end of an file while(!feof(stdin))