
Symantec C++ 7.0.6 for the Mac (using Thick C enabled feature)
Quote:
> I've declared a global character type variable as follows:
> char tHd[] = {
> "<FONT SIZE=3><CENTER>\n<DL>\n \
.
.
.
Quote:
> </DL></Center></Font>\n<br><pre>"
> };
> The entire string is NOT stored by the char array tHd. The string is
> truncated after 479 bytes. Why? Is this particular to Symantec C++
> 7.0.6 (with this product one can select the compiler to use C or C++).
> Please respond directly to my e-mail address.
> There must be someone using this product on the Mac.
> Merardo Monzon
> UT Health Science Center At San Antonio, Tx
Assuming you are not missing any proper backslashes and quotes, then it is
likely that the compiler may have a built in limit to the maximum size of
constant strings. Try the alternate, pointer form:
char *tHdl = "xxxxxx";
and see what happens.
Check the documentation for a section concerning compiler limits.
Peter