代码链接:
https://blog.csdn.net/weixin_45861496/article/details/124300012?spm=1001.2014.3001.5501
第11行代码改为:
printf("%.2x ", start[i]); //beautify
39行到最后一行改为:
int main() {
int test = 328;
//int test = 3329;
//int test = 1024;
test_show_bytes(test);
return 0;
}
依次运行三个数字: