Code in ASCII collating sequence.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
elemental function iachar_string(string) result(ich) type(string_type), intent(in) :: string integer :: ich if (allocated(string%raw) .and. slen(string) > 0) then ich = iachar(string%raw(1:1)) else ich = 0 end if end function iachar_string