int i = 0;
printf("buf:");
for(i = 0; i < sizeof(buf); i++)
{
printf("0x%x", *(buf + i) >> 4 & 0xf)
printf("%x ", *(buf + i) & 0xf);
}
printf("
");
int i = 0;
printf("buf:");
for(i = 0; i < sizeof(buf); i++)
{
printf("0x%x ", *(buf + i))
}
printf("
");
printf打印字节调试
:https://blog.csdn.net/zhangxuechao_/article/details/95496244
printf颜色
:https://blog.csdn.net/zhangxuechao_/article/details/72983585