What is the maximum length of a string?
Displaying 1-6 of 6 total.
1
rpgking

|
Is it still 255 characters like it was in Verge2?
Posted on 2004-05-18 22:32:35
|
vecna

|
No.
There's limits in some situations.. log and exit() probably have limits of 4k. But general string ops are virtually unlimited.
Posted on 2004-05-18 22:58:52
|
gannon

|
my tests say that 255 is not the limit.
the log file can't take really big string but I got a string of about 3500 in there
eep posted at the same time :P
Posted on 2004-05-18 22:59:37 (last edited on 2004-05-18 23:14:08)
|
rpgking

|
WOW..."virtually unlimited"?
That is awesome! :O
Posted on 2004-05-18 23:15:55
|
Ear

|
Too bad a string literal of 951 characters or more will cause VCC to crash as it loads the string into a fixed-size buffer.
Now how about real string comparisons?
Posted on 2004-05-25 01:31:57 (last edited on 2004-05-25 01:35:13)
|
Gayo

|
Nyahaha. I set up a loop to double the size of a string with every iteration and got to several hundred megs of memory usage before giving up.
Posted on 2004-05-25 02:45:07
|