[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: "Jeff Pohlmeyer" <yetanothergeek@...>
- Date: Fri, 19 Dec 2008 11:38:28 -0600
On Fri, Dec 19, 2008 at 10:53 AM, David Jones <drj@pobox.com> wrote:
> The portable limit on the total length of the string as specified in
> the standard is 4095 characters (in C99). If you are generating C code
> with a program you can easily go past this.
There is a note in the libcurl sources:
http://curl.haxx.se/lxr/source/src/mkhelp.pl#L213
"gcc 2.96 claims ISO C89 only is required to support 509 letter strings"
I'm not sure how accurate that is, so please don't shoot the messenger :-)
But I guess you could even break the code up into smaller chunks
and re-assemble it at runtime...
- Jeff