blob: 0087a208d1da5eb0265b6da937a43bc6c16e56ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# STRLDX -- Return the index of the last occurrence of a character in a
# string.
int procedure strldx (ch, str)
char ch, str[ARB]
int ip, offset
begin
offset = 0
do ip = 1, ARB
if (str[ip] == EOS)
break
else if (str[ip] == ch)
offset = ip
return (offset)
end
|