3 <<strrchr>>---reverse search for character in string
10 char * strrchr(const char *<[string]>, int <[c]>);
14 char * strrchr(<[string]>, <[c]>);
19 This function finds the last occurence of <[c]> (converted to
20 a char) in the string pointed to by <[string]> (including the
21 terminating null character).
24 Returns a pointer to the located character, or a null pointer
25 if <[c]> does not occur in <[string]>.
28 <<strrchr>> is ANSI C.
30 <<strrchr>> requires no supporting OS subroutines.
39 _DEFUN (strrchr
, (s
, i
),
43 _CONST
char *last
= NULL
;
47 while ((s
=strchr(s
, i
)))