STRCHRSection: Linux Programmer's Manual (3)Updated: 1993-04-12 |
STRCHRSection: Linux Programmer's Manual (3)Updated: 1993-04-12 |
#include <string.h> char *strchr(const char *s, int c); char *strrchr(const char *s, int c);
The strrchr() function returns a pointer to the last occurrence of the character c in the string s.
Here "character" means "byte" - these functions do not work with wide or multi-byte characters.