Possible Duplicate:
Hex to char array in C
For example if I want a hexadecimal number like this "F32FC0F5EC894E16"
I would store it in an unsigned char variable like this:
unsigned char s[8] = {0xF3, 0x2F, 0xC0, 0xF5, 0xEC, 0x89, 0x4E, 0x16};
But If I am getting this in a string which has this number:
char a[16]="F32FC0F5EC894E16"
How do I convert it into hexadecimal number and use it in a similar way as the variable 's' above?