Character-to-integer conversion function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
elemental function ichar_string(string) result(ich) type(string_type), intent(in) :: string integer :: ich if (allocated(string%raw) .and. slen(string) > 0) then ich = ichar(string%raw(1:1)) else ich = 0 end if end function ichar_string