the "char *Tcl_GetStringFromObj(objPtr, lengthPtr)" return an "char*"
not an "const char*".
question:
1) it is possible to manipulate the string without extend the
objPtr->length border?
2) after manipulation (discard space and tokenize "|"→"\0") the new
string is shorter and has additional '\0' values. It is allowed to
modify the objPtr->length to the new (shorter) length ?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (0 / 16) |
Uptime: | 76:06:34 |
Calls: | 9,820 |
Calls today: | 8 |
Files: | 13,757 |
Messages: | 6,190,029 |