3 <<strrchr>>---reverse search for character in string
10 char * strrchr(const char *<[string]>, int <[c]>);
13 This function finds the last occurence of <[c]> (converted to
14 a char) in the string pointed to by <[string]> (including the
15 terminating null character).
18 Returns a pointer to the located character, or a null pointer
19 if <[c]> does not occur in <[string]>.
22 <<strrchr>> is ANSI C.
24 <<strrchr>> requires no supporting OS subroutines.
33 strrchr (const char *s
,
36 const char *last
= NULL
;
41 while ((s
=strchr(s
, c
)))