Jump to content

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

From Wikibooks, open books for an open world

strrchr

[edit | edit source]
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