title: Ansi C - function expecting pointer to array
body: <p>im writting program in ANSI C, and and have one function, where im passing pointer to  semaphores array <code>struct sembuf semb[5]</code>. </p>
  
  <p>Now header of that function looks like:</p>
  
  <pre><code>void setOperations(struct sembuf * op[5], int nr, int oper)
  </code></pre>
  
  <p>But im getting warning:</p>
  
  <pre><code>safe.c:20: note: expected ‘struct sembuf **’ but argument is of type ‘struct sembuf (*)[5]’
  </code></pre>
  
  <p>How to solve that problem?</p>
  
  <p><strong>Edit</strong><br>
  Calling:</p>
  
  <pre><code>setOperations(&amp;semb, prawa, -1);
  </code></pre>