Pavilion1984:
I use strtoul(). It puts my ASCII sting into a unsigned long HEX string that i can use for anything and is only one line of code.
No, strtoul() doesn't put anything into any sort of string. It parses an unsigned long integer from a string.