Open main menu

Wikibooks β

C++ Programming/Code/Standard C Library/Functions/strrchr

< C++ Programming‎ | Code/Standard C Library‎ | Functions


#include <cstring>
char *strrchr( const char *str, int ch );

The function strrchr() returns a pointer to the last occurrence of ch in str, or NULL if no match is found.

Related topics
strchr - strcspn - strpbrk - strspn - strstr - strtok