title: comparing 2d char array against 1d char array in c
body: <p>I want to compare the second element of array against string to see if they match. I am trying to use memcmp to do this but it gives me an error. Is this the correct way of approaching this, or am I complete off? I'm sorry, I'm new to C.</p>
  
  <pre><code>char array[5][32] = {"foo","boo","moo"};
  char string[32] = "boo";
  int ret;
  ret = memcmp(array[1][32], string[32], 4) //4 because i don't want it too match 'book'
  if (ret == 0) {
       printf("equal");
  } else {
       printf("not");
  }
  </code></pre>