My question is how I would go about converting something like:
int i = 0x11111111;
to a character pointer? I tried using the itoa() fun
Using the sprintf() function to convert an integer to hexadecimal should accomplish your task.
sprintf()
Here is an example:
int i = 0x11111111; char szHexPrintBuf[10]; int ret_code = 0; ret_code = sprintf(szHexPrintBuf, "%x", i); if(0 > ret_code) { something-bad-happend(); }