dm_string_hex_to_int Interface

public interface dm_string_hex_to_int

Converts hexadecimal number to integer.

Called by

interface~~dm_string_hex_to_int~~CalledByGraph interface~dm_string_hex_to_int dm_string_hex_to_int proc~dm_ve_frame_read dm_ve_frame_read proc~dm_ve_frame_read->interface~dm_string_hex_to_int

Module Procedures

private pure elemental subroutine string_hex_to_int32(string, value, error)

Returns hexadecimal value as 4-byte integer. The input string must start with 0x or 0X. The routine returns the following error codes in error:

  • E_FORMAT if string is not in expected format.
  • E_INVALID if string does not start with 0x.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: string

Hex. string of value.

integer(kind=i4), intent(out) :: value

Value.

integer, intent(out), optional :: error

Error.

private pure elemental subroutine string_hex_to_int64(string, value, error)

Returns hexadecimal value as 8-byte integer. The input string must start with 0x or 0X. The routine returns the following error codes in error:

  • E_FORMAT if string is not in expected format.
  • E_INVALID if string does not start with 0x.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: string

Hex. string of value.

integer(kind=i8), intent(out) :: value

Value.

integer, intent(out), optional :: error

Error.