title: How do you allow spaces to be entered using scanf?
body: <p>Using the following code:</p>
  
  <pre><code>char *name = malloc(sizeof(char) + 256); 
  
  printf("What is your name? ");
  scanf("%s", name);
  
  printf("Hello %s. Nice to meet you.\n", name);
  </code></pre>
  
  <p>A user can enter their name but when they enter a name with a space like <code>Lucas Aardvark</code>, <code>scanf()</code> just cuts off everything after <code>Lucas</code>. How do I make <code>scanf()</code> allow spaces</p>