Convert integer char[] to hex char[] avr microcontroller
<p>I'm looking to convert a input variable of this type:</p>

<pre><code>char var[] = "9876543210000"
</code></pre>

<p>to a hex equivalent char</p>

<pre><code>char hex[] = "08FB8FD98210"
</code></pre>

<p>I can perform this by e.g. the following code::</p>

<pre><code>long long int freq;
char hex[12];
freq = strtoll(var,NULL,10);
sprintf(hex, "%llX",freq);
</code></pre>

<p>However I'm doing this on a avr microcontroller, thus strtoll is not available only strtol (avr-libgcc). So I'm restricted to 32 bits integer which is not enough. Any ideas?</p>

<p>Best regards
Simon</p>