title: How to initialize only a slice of a character array?
body: <p>I am aware of C's (pretty neat) array initialization syntax, like</p>
  
  <pre><code>char arr[12] = {[0] = '\n', [4] = 'z'};
  </code></pre>
  
  <p>to initialize some specific members in the array, but is there a means to initialize a whole chunk of the array with a string? Like so:</p>
  
  <pre><code>char filename[12] = {[0..9] = "data/img/"};
  </code></pre>
  
  <p>Is there a built-in syntax that allows it? Or do I have to stick to <em>memcpy()</em>:</p>
  
  <pre><code>char filename[strlen(basename) + 14];
  memcpy(filename, "data/img/", 9);
  memcpy(filename + 9, basename, l);
  memcpy(filename + 9 + l, ".bmp", 4);
  filename[l + 13] = '\0';
  </code></pre>
  
  <p>is what I currently have; <em>filename</em> is the incriminated character array, and <em>basename</em> a variable string.</p>