string_length Function

private recursive function string_length(str) result(count)

Arguments

Type IntentOptional AttributesName
type(fson_string), pointer:: str

Return Value integer


Contents

Source Code


Source Code

  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