VMS Help
RTL Routines, LIB$, LIB$MATCHC

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    The Match Characters and Return Relative Position routine
    searches a source string for a specified substring and returns
    an index, which is the relative position of the first occurrence
    of a substring in the source string. The relative character
    positions returned by LIB$MATCHC are numbered 1, 2, . . . , n.
    Thus, zero means that the substring was not found.

    Format

      LIB$MATCHC  sub-string ,source-string

  1 - Returns

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

    The relative position of the first character of the substring if
    found, or zero if not found.

  2 - Arguments

 sub-string

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

    Substring to be found. The sub-string argument is the address of
    a descriptor pointing to this substring.

 source-string

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

    Source string to be searched by LIB$MATCHC. The source-string
    argument is the address of a descriptor pointing to this source
    string.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.