title: Array of buffers in C programming?
body: <p>I am trying to create an array of buffers. I need to store an integer into each buffer. I'm not quite sure how this should be done. </p>
  
  <pre><code>int BUFFER_LENGTH = 50;   //the size of each buffer
  int numberOfBuffers = 10; //number of buffers
  int *pBuffers;          //array of buffers
  
      pBuffers = (int *) calloc (numberOfBuffers, sizeof(int)); //make array size of numberOfBuffers
  
      int i;
      for (i = 0; i &lt; n; i++){     //initialize each buffer to zero.
          &amp;pBuffers[i] = 0x00;
    }
  </code></pre>
  
  <p>What is it that I am doing wrong? This code isn't really working.</p>