title: Help comparing an argv string
body: <p>I have:</p>
  
  <pre><code>int main(int argc, char **argv) {
     if (argc != 2) {
        printf("Mode of Use: ./copy ex1\n");
        return -1;
     }
  
     formatDisk(argv);
  }
  
  void formatDisk(char **argv) {
     if (argv[1].equals("ex1")) {
         printf("I will format now \n");
     }
  }
  </code></pre>
  
  <p>How can I check if <code>argv</code> is equal to <code>"ex1"</code> in C?
  Is there already a function for that?
  Thanks</p>