Return the character sequence represented by the string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | pos |
elemental function char_string_pos(string, pos) result(character_string) type(string_type), intent(in) :: string integer, intent(in) :: pos character(len=1) :: character_string character_string = merge(string%raw(pos:pos), ' ', allocated(string%raw)) end function char_string_pos