Everything

strpbrk


Searches a specified string for the first occurrence of the character that is included in another string specified.

[Format]

#include <string.h>

char *strpbrk (const char *s1, const char *s2);

[Parameters]

s1 Pointer to the string to be searched

s2 Pointer to the string that indicates the characters to search s1 for

[Return values]

If the character is found: Pointer to the found character

If the character is not found: NULL

[Remarks]

The strpbrk function searches the string specified by s1 looking for the first occurrence of any character included in the string specified by s2. If any searched character is found, the function returns the pointer to the first occurrence.