strpbrk


Character string search (start position)

[Classification]

Standard library

[Syntax]

#include <string.h>

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

[Return value]

Returns the pointer indicating this character. If any of the characters from s2 does not appear in s1, the null pointer is returned.

[Description]

This function obtains the position in the character string indicated by s1 at which any of the characters in the character string indicated by s2 (except the null character (\0)) appears first.