title: Conflicting types Warning when passing String to function in C
body: <p>I haven't programmed in C for awhile and having an issue with passing a string to a function. 
  The code works however I get warnings from gcc.</p>
  
  <p>I call the function in my main with:</p>
  
  <pre><code>copyToCode(code, section1, section2);
  </code></pre>
  
  <p>The function is:</p>
  
  <pre><code>void copyToCode (char **code, char *loc, char *data ){}
  </code></pre>
  
  <p>I get "conflicting types for copyToCode" on the line containing the function and "previous implicit declaration of copyToCode was here" warning on the line calling the function.</p>
  
  <p>I have declared the variables:</p>
  
  <pre><code>char *code = malloc (32*1000* sizeof(char));
  </code></pre>
  
  <p><code>char *section1 = malloc(8*sizeof(char)), *section2 = malloc(8*sizeof(char));</code></p>
  
  <p>I also tried this :
  <code>char *section1[8];</code></p>
  
  <p>As a side question - which is correct?</p>
  
  <p>The section1 and section2 are meant to be Strings, and the code is meant to be an array of strings. </p>
  
  <p>Thanks for reading, I appreciate any help.
  Gareth</p>