[DGD] string too long error
Erwin Harte
harte at is-here.com
Sat Aug 9 05:16:32 CEST 2008
chris . wrote:
> I got a 'String too long' error for the first time. I am curious
> about the details of this. Is there a general limit to strings? or
> a limit to strings in an array?
There's a limit to individual strings; You can put as many strings in
an array as you want, as long as the array size doesn't exceed -its-
limit. :)
At runtime you can check the maximum string size if you include the
status.h file:
# include <status.h>
Then use the status() kfun:
status()[ST_STRSIZE]
The regular limit is, if I recall correctly, 64k-1 (65535).
Hope that helps,
Erwin.
More information about the DGD
mailing list