I'm with a little problem while doing an excercise to learn C. The problem is: I need to read a string from the user, but if he types just a space, I need to print a space. That's okay in theory. But, when I type the space while the program is running, it doesn't understand it as a string and it keeps waiting for me to type other things.
I'm using the scanf("%[^\n]", string_name_here);
I appreciate your help, and have a nice day! o/ And sorry for my bad english, I hope you can understand this :)