title: How is sscanf different from scanf in the following statements?
body: <p>I came across the following statement while I was going through a C program for client/server message handling in Unix.</p>
  <pre><code>int main(int argc, char* argv[])
  {
      (void)sscanf(argv[1],&quot;%d&quot;,&amp;port);
  }
  </code></pre>
  <p>It would be helpful if you can explain the above statement.</p>
  <p><strong>Edit</strong>: I don't know why people feel my question is not clear... I just wanted to know that if <code>scanf</code> takes input from keyboard then the above statement <code>sscanf</code> also does the same job indirectly. Is that correct?</p>