hexCompareAsInt32 Subroutine

public pure subroutine hexCompareAsInt32(firstString, secondString, output, error)

Compare two strings as hexadecimal strings by parsing them to int32 values first.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: firstString

A string to be compared to the string secondString.

character(len=*), intent(in) :: secondString

A string to be compared to the string firstString.

integer(kind=k_int32), intent(out) :: output

An int32 value of 1 if the firstString is larger than the secondString, 0 if they are both equal, or -1 if the firstString is smaller than the secondString. This value may not be a correct value if an error has occurred during parsing either one of the input strings.

logical, intent(out) :: error

A value of .TRUE. if an error has occurred during parsing either one of the input strings. Otherwise, a value of .FALSE..