INDEXSection: Linux Programmer's Manual (3)Updated: 1993-04-12 |
INDEXSection: Linux Programmer's Manual (3)Updated: 1993-04-12 |
#include <strings.h> char *index(const char *s, int c); char *rindex(const char *s, int c);
The rindex() function returns a pointer to the last occurrence of the character c in the string s.
The terminating NULL character is considered to be a part of the strings.