Convert a decimal value in char to hex and store in the char

Thanks for your reply
In the sender code the arrays pGPSData[8] and pGPStime[8] were not updating in the loop. I think i am missing something there. Can you help me find out