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

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

strpbrk[edit | edit source]

#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