title: cannot convert char (*)[1000] to char **
body: <p>I created a char variable called str and I am trying to pass it into a function.  I keep on getting the <code>error cannot convert char (*)[1000] to char</code> **.  I know that for <code>cannot convert char to char *</code> you just use the <code>&amp;</code> in front of the char, but I cannot figure out what to do in this case.  I searched stack and google and have had no luck. Any ideas?</p>
  
  <pre><code> char str2[1000];
             strcpy(str2, "/home/" );
         strcat(str2, pw-&gt;pw_name );
          strcat(str2, "/Documents/test4.txt" );
  
  
      char bufTest[512];
      int link = GetSymbolicLinkTarget(&amp;str2, bufTest, sizeof(bufTest));
  </code></pre>
  
  <p>Here is the function</p>
  
  <pre><code>int GetSymbolicLinkTarget(char *argv[], char *buf, size_t buf_size){
      int count = readlink(argv[1], buf, buf_size);
      if (count &gt;= 0) {
          buf[count] = '\0';
      }
      return count;
  }
  </code></pre>