title: Split a string without delimiter C
body: <p>I have a string of 256 characters and I would like to split it in 64 strings of 4 characters in c, but I do not have delimiters, is there any function to do so?</p>
  
  <p>I have the following code:</p>
  
  <pre><code>char message[256]="MSN0MSN1MSN2MSN3..";
  char a[4];
  
  for(i=0;i&lt;64;i++)
  {
     memcpy(a[i],message+(i*4),4);
     *(ram_tx+i)=a(i);
  }
  </code></pre>
  
  <p>the part of the ram_tx works, the problem in the code is the memcpy as when I printf the a[I] it shows:</p>
  
  <p>MSN0
  MSN1
  MSN23</p>