Convert character variable to upper case (Specification)
Version: experimental
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
pure function to_upper(string) result(upper_string) character(len=*), intent(in) :: string character(len=len(string)) :: upper_string integer :: i do i = 1, len(string) upper_string(i:i) = char_to_upper(string(i:i)) end do end function to_upper