Which program creates a C array given any file?

前端 未结 5 1476
执念已碎
执念已碎 2020-12-07 17:33

I remember seeing in the past a program that would take any file and generate a C array representing that file as output; it would prevent distribution of a separate file in

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 18:36

    hexdump -v -e '16/1 "0x%x," "\n"'
    

    would generate a C like array from stdin, but there is no declaration, no braces or good formatting.

提交回复
热议问题