strpbrk

Find characters in a string.

char * strpbrk (char * string, char * charset);

Required Header
<string.h>

Return Value

The position of the first character found which is in charset is returned. NULL indicates there are no characters in common.

Parameters

string

  A string

charset

  A set of characters to search for

String

See Also    strchr, strcspn, strspn, _strspnp