title: scanf reading "Enter" key
body: <p>Why scanf doesn't work when I type "Enter" in the code below?</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main(int argc, char**argv)
  {
   char *msg = malloc(100*sizeof(char));
   do{
          scanf("%s",msg);
          printf("%s\n",msg);
   } while(strcmp(msg,"")!=0);
  }
  </code></pre>