C - Char to hexa : <p>I have str:</p>

<pre><code>char *str = "lala";
</code></pre>

<p>Now, I would like convert any chars in str to hexadecimal, example:</p>

<pre><code>str = convert(str);
print str: 0x6C 0x61 0x6C 0x61
            ^ l  ^ a  ^ l  ^ a
</code></pre>

<p>How I can do that ?</p>
