Possible Duplicate:
Hex to char array in C
I have a char[10] array that contains hex characters, and I'd like to end up with a byte[5] array of the values of those characters.
In general, how would I go from a char[2] hex value (30) to a single decimal byte (48)?
Language is actually Arduino, but basic C would be best.