rindex3
Locate character in string
Usage
#include <strings.h>
char *
rindex(const char *s, int c);
Library
Standard C Library (libc, -lc)
Overview
The rindex() function locates the last character matching c (converted to a char) in the null-terminated string s.
Return values
A pointer to the character is returned if it is found; otherwise, NULL is returned. If c is ‘\0’, rindex() locates the terminating ‘\0’.
Releases
163 releases since Mac OS X 10.0; the text changed 3 times.