How to make variable size string for sprintf
<p>I want to make variable size string "msg" like this.</p>

<pre><code>char *msg;
sprintf(msg,"Msg",variable)
</code></pre>

<p>i dont want to use string .
What would be the best solution </p>
