]>
diplodocus.org Git - nmh/blob - docs/historical/mh-nov-1983/subs/r1bindex.c
2 * r1bindex(str, chr) stands for Right plus 1 or Beginning index of
3 * chr in str. I.e. return ptr 1 past LAST occurance of chr in
4 * str, OR beginning of the string if str doesn't contain chr.
14 for(cp
= str
; *cp
; cp
++) ;
16 while(cp
>= str
&& *cp
!= chr
)