VMS Help  —  RTL Routines, STR$  STR$RIGHT
    The Extract a Substring of a String routine copies a substring
    ending at the last character of a source string into a
    destination string.

    Format

      STR$RIGHT  destination-string ,source-string ,start-position

1  –  Corresponding JSB Entry Point

      STR$RIGHT_R8

2  –  Returns

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

3  –  Arguments

 destination-string

    OpenVMS usage:char_string
    type:         character string
    access:       write only
    mechanism:    by descriptor

    Destination string into which STR$RIGHT copies the substring.
    The destination-string argument is the address of a descriptor
    pointing to the destination string.

 source-string

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

    Source string from which STR$RIGHT extracts the substring that it
    copies into the destination string. The source-string argument is
    the address of a descriptor pointing to the source string.

 start-position

    OpenVMS usage:longword_signed
    type:         longword (signed)
    access:       read only
    mechanism:    by reference for CALL entry point, by value for JSB
                  entry point

    Relative position in the source string at which the substring
    that STR$RIGHT copies starts. The start-position argument is the
    address of a signed longword containing the starting position.
Close Help