home *** CD-ROM | disk | FTP | other *** search
- @node strrchr, string
- @subheading Syntax
-
- @example
- #include <string.h>
-
- char *strrchr(const char *s1, int c);
- @end example
-
- @subheading Description
-
- This function finds the last occurrence of @code{c} in @code{s1}.
-
- @subheading Return Value
-
- A pointer to the last match, or @code{NULL} if the character isn't in
- the string.
-
- @subheading Example
-
- @example
- char *last_slash = strrchr(filename, '/');
- @end example
-
-