Name
strpbrk function — Locates a character in a span set
Synopsis
const char* strpbrk(const char* str, const char* spanset) char* strpbrk( char* str, const char* spanset)
The strpbrk
function
searches str
for any of the
characters in spanset
and returns
a pointer to the first occurrence of such a character. If none of
the characters in spanset
appear
in str
, strpbrk
returns a null pointer.
See Also
strchr function, strcspn function, strspn function, wcspbrk
in <cwchar>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.