Function name : strpbrk Header file : <string.h> Function prototype : char *strpbrk(const char *str1, const char *str2); Function : Compare whether there are the same characters in strings str1 and str2, but do not include the terminator '\0' Parameters : const char *str1 The target string to be searched const char *str2 The string to find Return value : Returns a pointer to the first matching character in str1. If the search fails, NULL is returned. Program example: Find the first position in string str1 that belongs to any string in string str2. #include<string.h>#include<stdio.h>intmain(void){char*str1=www.dotcpp.com;char*str2=cde;char*ptr=strpbrk(str1,str 2);if(ptr){printf(strpbrkfoundfirstcharacter:%c\n,*ptr);}else{printf(strpbrkdidn'tfindcharacterinset\n);}return0;} Running results: strpbrkfoundfirstcharacter:d