Linux 下使用xxd 命令将二进制文件转换为C字符数组
1.使用xxd命令将二进制文件或者其他文本文件转换为c语言字符数组
1 | xxd -i data.bin > a.c |
2.查看生成结果
1 | cat a.c |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.