Active data copying
<p>Is this expression correct?</p>

<pre><code>{
    char a;
    char *temp;
    for(int j = 0; j &lt; len; j++)
    {
        strcpy(&amp;temp[j], (char*)a);
    }
}
</code></pre>

<p>in this code <code>a</code> gets updated externally by the user input/key stroke. I want to copy all incoming/updated <code>a</code> to the <code>temp</code> as an entire string.</p>
