logical function to compare character keys
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | c1 | |||
character(len=*), | intent(in) | :: | c2 |
pure elemental logical function char_equal(c1,c2)
character(*), intent(in) :: c1
character(*), intent(in) :: c2
char_equal = lowcase(trim(c1))==lowcase(trim(c2))
end function char_equal