Anonymous user
String matching: Difference between revisions
→{{header|DCL}}
Line 680:
$ if offset .ne. length_of_first_string
$ then
$ write sys$output "first string contains the second string at
$ 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
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
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
first string ends with the second string
$ @string_matching efabcdef defx
|