How would you convert from ASCII to Hex by character in C?
I basically just want to take a 8 character ASCII value 003fc000
and conver开发者_运维问答t it to Hex by character.
You mean convert it to a hex integer?
int num = (int)strtol("003fc000", NULL, 16);
精彩评论