RINDEX(3) NEWLIB RINDEX(3)NAME
6.13 `rindex'--reverse search for character in string
SYNOPSIS
#include <string.h>
char * rindex(const char *STRING, int C);
DESCRIPTION
This function finds the last occurence of C (converted to a char) in
the string pointed to by STRING (including the terminating null charac‐
ter).
This function is identical to `strrchr'.
RETURNS
Returns a pointer to the located character, or a null pointer if C does
not occur in STRING.
PORTABILITY
`rindex' requires no supporting OS subroutines.
SEE ALSO
rindex is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 RINDEX(3)