Mail Archives: djgpp/1997/11/16/23:32:19
On Sun, 16 Nov 1997, Jose Luis Perandones Colino wrote:
> I want a constant sting, but the string is very long, can i declare in
> multiple lines???
>
> char text=" ... "
> ^^^^^a very very long string(2000 chars)
>
> i want split this in multiple lines.
Easy. C can concatenate two string constants placed end-to-end without
any special operations. For instance:
"blah" "foo"
is equivalent to:
"blahfoo"
And:
"la la"
" de dah"
is the same as:
"la la de dah"
Just break the string into managable bits and put them on separate lines.
Good luck!
/\/\att /\/\astracci mmastrac AT acs DOT ucalgary DOT ca
GCS/GE d- s+:+ a--- C++++ UA P+ L E-- W+ N++ o K+ w+ O M- V
PS++ PE++ Y+ PGP t+++ 5+++ X++ R++ tv+ b+++ DI++++ I
G++ e h r* z?
- Raw text -