Using sprintf will change the specified variable
<p>I have a code,</p>

<pre><code>char* bin2hexchar( const unsigned char&amp; ibin, char* pbcd )
{
    sprintf( pbcd, "%02X", ibin );

    return pbcd;
}
</code></pre>

<p>The problem is, the value of ibin variable will change to zero value.</p>

<p>Please advice.</p>

<p>Thanks</p>
