title: Can't compare argv?
body: <p>I have this code:</p>
  
  <pre><code>if (argv[i] == "-n") 
  {
      wait = atoi(argv[i + 1]);
  }
  else 
  {
      printf("bad argument '%s'\n",argv[i]);
      exit(0);
  }
  </code></pre>
  
  <p>When this code gets executed I get the following error:</p>
  
  <blockquote>
    <p>bad argument '-n'</p>
  </blockquote>
  
  <p>I seriously don't know why it does that. Can someone explain?</p>