title: C - how do you access value from a pointer to a pointer to that value?
body: <p>This function needs to be passed a pointer to a pointer.</p>
  
  <pre><code>void get_name(person** p) {
      puts(p-&gt;name); // this is probably wrong
  }
  </code></pre>
  
  <p>This is how I call the function (I'm not sure about this either):</p>
  
  <pre><code>int main() {
      ...
  
      get_name(&amp;person); // is this wrong?
  
      ...
      return 0;
  }
  </code></pre>
  
  <p>Person is obviously a struct with a name property which is a string.</p>
  
  <p>How do you refer to the value *p points to from **p?</p>