【发布时间】:2018-07-27 02:16:46
【问题描述】:
我需要从 char* 中提取长度 = 16 的十六进制数,
例如。 fa45cb15 我需要获取每一位的值
如何以正确的方式做到这一点?现在我只是打印printf("%x");
【问题讨论】:
-
欢迎堆栈溢出。请展示您到目前为止所做的尝试。
-
欢迎来到 stackoverflow.com。请花一些时间阅读the help pages,尤其是名为"What topics can I ask about here?" 和"What types of questions should I avoid asking?" 的部分。也请take the tour 和read about how to ask good questions。最后请学习如何创建Minimal, Complete, and Verifiable Example。
-
你的意思是bit还是byte?你应该打印吗?
"fa"后跟"45"等等? -
不清楚你在问什么,请举个例子。