toCString - how to get it's length

BlitzMax Forums/BlitzMax Beginners Area/toCString - how to get it's length

Just another small question:

<string>.ToCString:byte ptr() converts a BlitzMax (Unicode) string into a (0-terminated) "C" string - I don't ask how this is done, although that would be interesting as well (UTF-8? just ignoring the high byte?)

What I would like to know is how I can get the length of the resulting string: will I have to write a loop myself, looking for the 0-byte? Or is there already a "strlen" command built-in?

Thanks in advance for your help