title: fill a buffer successively
body: <p>i intend to fill a char-pointer array successively in a for-loop. the content to fill in is a integer so i need to cast. but i didn't get the result i want to.. </p>
  
  <pre><code>for (i=0;i&lt;max0;i++){
      sprintf(buf, "%d", content[i]);
  }
  </code></pre>
  
  <p>sprintf replaces the hole buf, but i want to append.</p>
  
  <pre><code>for (i=0;i&lt;max0;i++){
     buf[i]=(char) contint[i]
  }
  </code></pre>
  
  <p>but this isn't working too. it seems to me, i get ascii-code of the content[i]. </p>