Name

strpbrk —

Synopsis

string strpbrk(str1, str2);
string str1;
string str2;

Description

Locates the first occurrence in str1 of any characters from string str2

Parameters

str1

The first string

str2

The second string

Returns

A copy of string str1 starting from the first occurrence until end or an empty string if no characters were found