rindex (3) Linux Manual Page
index, rindex – locate character in string
Synopsis
#include <strings.h>
char *index(const char *s, int c);
char *rindex(const char *s, int c);
Description
The index() function returns a pointer to the first occurrence of the character c in the string s.
The rindex() function returns a pointer to the last occurrence of the character c in the string s.
The terminating null byte (‘
