Я думаю, что вы имеете в виду «включить пробелы». Использование:
#define str(x) #x
#define xstr(x) str(x)
/* ... */
char buf[ SIZE + 1 ] = "";
int rc = scanf("%" xstr(SIZE) "[^\n]%*[^\n]", buf);
/*you may need the return value later on, if reading
in multiple strings with whitespaces in a loop */
if (!feof(stdin))
getchar(); /* consume newline */