title: strcat() int variable + C
body: <p>I need to print something on this form:</p>
  
  <blockquote>
  <pre><code>[1] "text"
  [2] "text"
  [3] "text"
  </code></pre>
  </blockquote>
  
  <p>I'm using <code>strcat()</code>, so I want to concatenate "text" to a buffer.<br>
  I get "text" one element at a time in a buffer, and I need to concatenate it to a string.  </p>
  
  <p>The problem is that I can't seem to figure out how to get the [number] part in the front.  </p>
  
  <p>First, is it possible to <code>strcat()</code> an <code>int</code>?<br>
  I have tried, but can't seem to get it to work.  </p>
  
  <p>Second, is it possible to get the <code>'[' ']'</code> around the variable? (I need the <code>int</code> value to increase for each loop).<br>
  This may be a stupid question, but I really can't figure out how to solve this, and I need the menu to be on this form or something similar. </p>