Jump to content

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

From Wikibooks, open books for an open world

strpbrk

[edit | edit source]
Syntax
#include <cstring>
char * strpbrk( const char *str, const char *ch );

The function strpbrk() returns a pointer to the first occurrence of any character within ch in str, or NULL if no characters were not found.

Related topics
strchr - strrchr - strstr