strpbrk


Search for any specified character in the string

[Classification]

Standard library

[Syntax]

#include <string.h>

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

char __far * __far _COM_strpbrk_ff(const char __far *s1, const char __far *s2);

[Return value]

Returns the pointer to the character searched for. 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.