[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What is the preferred way to embed multi-line string in C source?
- From: "pan shizhu" <pan.shizhu@...>
- Date: Sat, 20 Dec 2008 12:41:29 +0800
Thanks everyone, I found Lua mailing list really wonderful with all kinds of kindly help!
It seems that "xxd -i" is the best for me, I can add a step in my Makefile to do that.
xxd -i output a char array like the following, which is not a string literal.
unsigned char ltools_lua[] = {
0x0a, 0x6c, 0x6f, 0x63, 0x61,
};
Is there any 4096 limit for xxd -i style output?