[Tfug] C Compiler string limitations?
Robert Hunter
hunter at tfug.org
Mon Jul 17 13:43:20 MST 2006
> I'm curious if anyone has had any experiences with
> compilers choking on long strings/byte arrays.
>
> I have some data structures that look like:
>
> "..." ## "..." ## "..." (etc)
>
> and, in the interest of portability, would hope that
> few compilers would gag on them.
C89 requires a minimum string literal size of 509
C99 requires a minimum 4095
That said, both gcc and msvc will handle much larger string literals ( I
tested up to 8000 ).
--
Rob
More information about the tfug
mailing list