title: C Codes to Take string argument in Command Line Different Argument
body: <p>i want to make a C Program which takes 2 argument in command line.
  like i want to upgrade yum via my own command like :</p>
  <pre><code>mycommand yum upgrade
  </code></pre>
  <p>in this, mycommand is a C compiled file and yum upgrade are arguments.
  now the program will take the argument yum upgrade.
  and then program will check that if argument is equals to yum upgrade then program will run this code : system(&quot;yum upgrade&quot;)</p>
  <p>anyone can tell me how can i do this?</p>