|
|
#include <strings.h>char *index(const char *s, int c);
char *rindex(const char *s, int c);
rindex- character string operation
The index function is identical to the strchr function. The rindex function is identical to the strrchr function. See string(S-osr5). index and rindex are provided for backwards compatibility: strchr and strrchr are to be recommended.
X/Open Portability Guide Issue 4, Version 2 (Spec-1170).