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