TCString::Strnlen

Calculate the length of the string up to the given size.