[Tfug] C Compiler string limitations?

Robert Hunter hunter at tfug.org
Mon Jul 17 17:04:54 MST 2006


> Did you build these strings literally, as:
>
> ".....  ...  ......"
>
> or:
>
> "............" \
> "........" \
>
> etc.?
>
> Or, were they composed of various constants,
> expressions, literals, etc. pieced together?
>
> (i.e. I am curious as to how much strain you put
> on the preprocessor's line lengths, etc.)

I tested with both macros and a very large string literal.

i.e.,

#define STR100 "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
#define STR200 STR100 STR100

...

#define STR64000 STR32000 STR32000


const char string_big[] = "0123456789 ... ";




-- 
Rob




More information about the tfug mailing list