VMS Help
CRTL, strpbrk
*Conan The Librarian
|
Searches a string for the occurrence of one of a specified set of
characters.
Format
#include <string.h>
char *strpbrk (const char *str, const char *charset);
The strpbrk function has variants named _strpbrk32 and _strpbrk64
for use with 32-bit and 64-bit pointer sizes, respectively.
str
A pointer to a character string. If this character string is a
null string, 0 is returned.
charset
A pointer to a character string containing the set of characters
for which the function will search.
The strpbrk function scans the characters in the string, stops
when it encounters a character found in charset, and returns the
address of the first character in the string that appears in the
character set.
x The address of the first character in the
string that is in the set.
NULL Indicates that no character is in the set.