2 ms·
xxd can out put any random set of bytes as C code. For example: > xxd -i tmp.f unsigned char tmp_f[] = { 0x38, 0x4a, 0x39, 0x6f, 0x61 };
by shakna 5y ago
xxd can out put any random set of bytes as C code.
For example:
> xxd -i tmp.f
unsigned char tmp_f[] = {
0x38, 0x4a, 0x39, 0x6f, 0x61
};
unsigned int tmp_f_len = 5;
I use it as part of a number of build scripts.