Function strpbrk

Top 

 

 

Declaration:

int strpbrk(char s1[], char s2[], int s1_index=0, int s2_index=0);

Description

Function strpbrk searches for the first occurrence of any character from line s2 in line s1. The zero character is not the search element.

Returned value

The strpbrk function returns the number of the found character in line s1. If line s1 does not contain any characters from line s2, then -1 will be returned.