VMS Help  —  RTL Routines, LIB$  LIB$CVT xTB
    The Convert Numeric Text to Binary routines return a binary
    representation of the ASCII text string representation of a
    decimal, hexadecimal, or octal number.

    Format

      LIB$CVT_DTB  byte-count ,numeric-string ,result

      LIB$CVT_HTB  byte-count ,numeric-string ,result

      LIB$CVT_OTB  byte-count ,numeric-string ,result

1  –  Returns

    OpenVMS usage:cond_value
    type:         longword (unsigned)
    access:       write only
    mechanism:    by value

2  –  Arguments

 byte-count

    OpenVMS usage:longword_signed
    type:         longword integer (signed)
    access:       read only
    mechanism:    by value

    Byte count of the input ASCII text string. The byte-count
    argument is a signed longword integer containing the byte count
    of the input string.

 numeric-string

    OpenVMS usage:char_string
    type:         character string
    access:       read only
    mechanism:    by reference

    ASCII text string representation of a decimal, hexadecimal, or
    octal number that LIB$CVT_xTB converts to binary representation.
    The numeric-string argument is the address of a character string
    containing this input string to be converted.

    LIB$CVT_xTB allows only an optional plus (+) or minus (-) sign
    followed by a string of decimal, hexadecimal, or octal characters
    appropriate to the routine being called.

 result

    OpenVMS usage:longword_signed
    type:         longword integer (signed)
    access:       write only
    mechanism:    by reference

    Binary representation of the input string. The result argument is
    the address of a signed longword integer containing the converted
    string.
Close Help