Users input in guess

Hi everyone!
Could someone please tell me how will the user supposed to input a word? i.e. Will a input string always be ended with a newline entered?
Also from the description, it says that too short word and non-characters-input are undefined, so we only need to consider that if a input word is too long and consider with dictionary. Is that correct?


since a user can only enter the next guess after entering a word + newline, each input string will end with a newline character. Now that being said, depending on your method of reading strings from the console, newline may not be read. See the manpages of your corresponding functions (scanf, gets, etc…). You should also not forget the nullbyte which terminates each string.

Your second question was answered in this post.

Hope this helps,


Thanks a lot.

A post was split to a new topic: Control D for input termination