How would you convert from ASCII to Hex by character in C?

后端 未结 1 1185
轮回少年
轮回少年 2021-01-29 06:00

I basically just want to take a 8 character ASCII value 003fc000 and convert it to Hex by character.

相关标签:
1条回答
  • 2021-01-29 06:10

    You mean convert it to a hex integer?

    int num = (int)strtol("003fc000", NULL, 16);
    
    0 讨论(0)
提交回复
热议问题