2 Aug
2002
2 Aug
'02
1:59 p.m.
--- Frank Heckenbach <frank@g-n-u.de> wrote:
Will sizeof(somestring) always be 9 bytes larger than high(somestring)/getstringcapacity(somestring)? A string contains Capacity and Length (4 bytes each on a 32 bit platform) and an extra character for the #0 when converting to CString.
OK, thank you... Is it converted to CString automatically when calling sizeof? Because it is 9 bytes longer than getstringcapacity...
Not converted, but the extra char is always there (so that it's available when it's needed). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html