Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fson_string), | pointer | :: | str |
recursive integer function string_length(str) result(count)
type(fson_string), pointer :: str
count = str % index
if (str % index == BLOCK_SIZE .AND. associated(str % next)) then
count = count + string_length(str % next)
end if
end function string_length