I was asked to do a work in C when I\'m supposed to read from input until there\'s a space and then until the user presses enter. If I do this:
scanf(\"%2000
Sounds like a homework problem. scanf() is the wrong function to use for the problem. I'd recommend getchar() or getch().
Note: I'm purposefully not solving the problem since this seems like homework, instead just pointing you in the right direction.