Why no early termination of Zstring when zero is in text?
John Kauffman
Posts: 653
In the following ZStrings, why is the string not considered terminated after the fifth character (the internal zero)?
text.str(string("The 0 come first"))
DAT
myString byte " The 0 come first ",0
text.str(string("The 0 come first"))
DAT
myString byte " The 0 come first ",0
Comments
-Phil
myString byte "The 0 come first ",0
So in the above the zero at the end is being treated like a code (in the way of 13 for CR).
Therefore:
myString byte "The 0 come first 0"
has not been terminated.
Thanks.
-Phil