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

From Wikibooks, open books for an open world
Jump to: navigation, search

strrchr[edit]

Syntax
#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