title: Pass a char variable to the next value in an array - C
body: <p>I need to pass a char variable to the next value in an array in C.</p>
  
  <p>I am declaring the array (list) and the size (0), I then have the variable I want to insert into the next element in the array, which is value.</p>
  
  <pre><code>char list[100];
  size_t size = 0;
  char *value = "name";
  </code></pre>
  
  <p>I then want to insert the value into the next element in the array, but this does not work:</p>
  
  <pre><code>list[size++] = "%s",value;
  </code></pre>
  
  <p>This only works for a single character, e.g:</p>
  
  <pre><code>list[size++] = 'n';
  list[size++] = 'a'
  list[size++] = 'm'
  list[size++] = 'e'
  </code></pre>