it is better to use "fgets()" instead of scanf()
but if you really want to use scanf() only, then repley "%s" with "%[^\n]" ie. "scanf("%[^\n]", buff);"
this will take the input until a "\n" (new line) encountered.
But I would suggest go with fgets(), because there is no check for buffer overflow in scanf().