#Proper way to take user input in C (no use of scanf)

5 messages · Page 1 of 1 (latest)

deft kettle
#

Hi guys, I noticed that scanf takes in spaces or special characters like tab as terminating character and so, in case of strings, we can't enter "John Doe" because the space will mark the end of the string and only John will be returned. How to prevent that

meager fiberBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

meager fiberBOT
#

This question is being automatically marked as stale.
If your question has been answered, type !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.

deft kettle
#

!solved