title: 2D array using strings
body: <p>I'm stuck on some homework which isn't graded (its meant for practice).</p>
  
  <p>I have to create a function called <code>find_name</code> that takes 2 arguments.  The first argument is a 2D array of names (strings), and the second is a character string which is used to find the name in the 2D array, the function must return 1 if found else 0.</p>
  
  <p>When i call the function (which is empty right now), I get this <code>warning: passing argument 1 of 'find_name' from incompatible pointer type</code> </p>
  
  <p>Here is the important bits.</p>
  
  <p><strong>In Main</strong> </p>
  
  <pre><code> char strNameList[][2] = { { "Luca","Daniel"} ,{"Vivan","Desmond"},{"Abdul","Justin"}, {"Nina","Marlene"},{"Donny","Kathlene"} };
  
  char strFindName[] = "\0";
      printf("Please enter a name to look for: ");
      gets(strFindName);
      nSearch = find_name(strNameList, strFindName);
  </code></pre>
  
  <p><strong>The Function</strong></p>
  
  <pre><code>int find_name(char strNameList[][2], char strLookUp[])
  </code></pre>
  
  <p>I'm new to C (I'm a student), and I'm completely confused about strings (string arrays etc).</p>