![]() -> Click here to learn how to get live help <- |
INDEXIndexNAMEindex, rindex - locate character in stringSYNOPSIS#include <strings.h> char *index(const char *s, int c); char *rindex(const char *s, int c); DESCRIPTIONThe fBindex()fP function returns a pointer to the first occurrence of the character fIcfP in the string fIsfP.The fBrindex()fP function returns a pointer to the last occurrence of the character fIcfP in the string fIsfP. The terminating NULL character is considered to be a part of the strings. RETURN VALUEThe fBindex()fP and fBrindex()fP functions return a pointer to the matched character or NULL if the character is not found.CONFORMING TOBSD 4.3SEE ALSOmemchr(3), strchr(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3)
Index |