title: How to put data from a buffer to an array in C?
body: <p>I have got some data in a buffer and want to put those data in an array.</p>
  
  <pre><code> typedef struct chunk 
   {
   char data[300];    /* the bufferr. */
   } CHUNK;
   char *buffer, CHUNK c [100];
  </code></pre>
  
  <p>Assuming I have got data into the buffer, how can I put 300 char per chunk? I'm new to C so please explain me with simple example.</p>
  
  <p>Thanks,
  Kevin</p>