This is exactly how you check whether fgets has read up to it's limit and there's more left in the buffer, and the very reason fgets leaves the newline in the buffer at all.


scanf with a %10s...