Table of Contents
Previous topic Next topic
C LIBRARY FUNCTIONS->Detailed Descriptions->strpbrk()
Summary
#include <string.h>
char *strpbrk(const char* string1,const char* string2);
Parameters
string1 | Source string |
string2 | Character set |
Description
This function finds the first occurrence in string1 of any character in string2. The search does not include the null terminating character.
Return Value
The function returns a pointer to the first character in string1 that is also in string2. A NULL return value indicates that the two strings have no characters in common.