2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
9 * r1bindex(str, chr) stands for Right plus 1 or Beginning index of
10 * chr in str. I.e. return ptr 1 past LAST occurrence of chr in
11 * str, OR beginning of the string if str doesn't contain chr.
21 for(cp
= str
; *cp
; cp
++)
24 while(cp
>= str
&& *cp
!= chr
)