title: sscanf string splitting not working
body: <p>Can someone please explaing why the string is not splitted in the following code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      char name[] = "first:last";
      char first[20], last[20];
  
      sscanf(name, "%s:%s", first, last);
  
      printf("first: %s, last: %s", first, last);
  
      return 0;
  }
  </code></pre>
  
  <p>The output is </p>
  
  <blockquote>
    <p>first: first:last, last:</p>
  </blockquote>
  
  <p>but it should be </p>
  
  <blockquote>
    <p>first: first, last: last</p>
  </blockquote>
  
  <p>Kindly check code here <a href="http://ideone.com/JDSTt" rel="nofollow">http://ideone.com/JDSTt</a></p>