Read a TOML string list into an allocatable string_t array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_table), | intent(inout) | :: | table | |||
| character(len=*), | intent(in) | :: | key | |||
| type(string_t), | intent(inout), | allocatable | :: | list(:) |
subroutine toml_get_list_strings(table, key, list) type(toml_table), intent(inout) :: table character(len=*), intent(in) :: key type(string_t), allocatable, intent(inout) :: list(:) type(error_t), allocatable :: err type(string_t), allocatable :: tmp(:) if (.not. allocated(list)) allocate(list(0)) call get_list(table, key, tmp, err) if (allocated(err)) then if (allocated(tmp)) deallocate(tmp) return end if if (.not. allocated(tmp)) return call move_alloc(tmp, list) end subroutine toml_get_list_strings