String matching: Difference between revisions

Line 680:
$ if offset .ne. length_of_first_string
$ then
$ write sys$output "first string contains the second string at some location ", offset
$ else
$ write sys$output "first string does not contain the second string at any location"
Line 694:
<pre>$ @string_matching efabcdef ef
first string starts with second string
first string contains the second string at some location 0
first string ends with the second string
$ @string_matching efabcdef ab
first string does not start with second string
first string contains the second string at some location 2
first string does not end with the second string
$ @string_matching efabcdef def
first string does not start with second string
first string contains the second string at some location 5
first string ends with the second string
$ @string_matching efabcdef defx