title: Argument type differentiate in C program
body: <p>I have a main function,</p>
  
  <pre><code>int main (int argc, char **argv)
  {}
  </code></pre>
  
  <p>I'm supposed to pass two different command-line arguments:</p>
  
  <pre><code>argv[1]=IP ADDRESS type
  argv[2]=INTEGER type
  </code></pre>
  
  <p>For example, <code>./a.out IP-ADDRESS INTEGER</code>. I am calling this binary with some other script.</p>
  
  <p>The problem is while <code>argv[1]</code> is not available it behaves like <code>INTEGER</code> value as <code>argv[1]</code>.</p>
  
  <p>How can I put a check in that if <code>argv</code> is type <code>INT</code> don't make it to the <code>argv[1]</code> or only <code>IP-ADDRESS</code> type is allow in <code>argv[1]</code>?</p>