Newbie to C programming here. I am trying to convert a char array into individual hex values and store them in an unsigned char array. Basically I have "3www6google3com0" and I would like to get the 8 bit hex value for each individual character from the string. I would like to end up with an unsigned char array of something of the sort like:
unsigned char foo[100] = {
0x03, 0x77, 0x77, 0x77 .... etc.
}
I've been playing around with itoa, sprintf, and sscanf but am not getting the results I want. Thanks in advance for any help!
-BtL