 <p>I made a librairy to make Hexadecimal / Decimal conversion without the use of <code>stdio.h</code>. Very simple to use :</p> <pre class="lang-c prettyprint-override"><code>char* dechex (int dec); </code></pre> <p>This will use <code>calloc()</code> to to return a pointer to an hexadecimal string, this way the quantity of memory used is optimized, so don't forget to use <code>free()</code></p> <p>Here the link on github : <a href="https://github.com/kevmuret/libhex/" rel="nofollow">https://github.com/kevmuret/libhex/</a></p>