开发者

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

开发者 https://www.devze.com 2022-12-27 18:54 出处:网络
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?

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消