Hello to everyone I'm new to the c-programming board.

I'll first start off with my first question.

I know of the itoa, strol, and sprintf way to convert a dec to Hex, but I'm actually trying to understand the logic behind actually writing the code. I have a serious migrain and can't put two and two together right now. Any ideas to break down the thought process in doing such conversions.

Thank You