title: How do you pass a typedef struct to a function?
body: <p>At the moment I'm trying</p>
  
  <pre><code>void avg(everything)
  </code></pre>
  
  <p>But that gives me the error:</p>
  
  <pre><code>error: subscripted value is neither array nor pointer
  </code></pre>
  
  <p>And when I got this error earlier today it was because I wasn't passing a 2D array to the function properly. So I figure this is the same but I can't find the correct format to pass it in.</p>
  
  <p>This is my typedef:</p>
  
  <pre><code>typedef struct structure
  {
  char names[13][9];
  int scores[13][4];
  float average[13];
  char letter[13];
  } stuff;
  </code></pre>
  
  <p>And this is my typedef array:</p>
  
  <pre><code>stuff everything[13];
  </code></pre>