STR$ELEMENT (OpenVMS) STR$ELEMENT (OpenVMS)
NAME
strpbrk - find one of a set of bytes in a string
STR$ELEMENT - Extract delimited element substring
STR$FIND_FIRST_IN_SET - Find the first character in a character set
EXPLAINATION
The Digital UNIX strpbrk function provides functionality similar to the
OpenVMS STR$ELEMENT and STR$FIND_FIRST_IN_SET string manipulation rou‐
tines. The strpbrk function takes two strings, the first is the string
to search though, the second is the list of characters (bytes) to
search for. When a match is found in the search string, the address of
the matching character is returned. The very next character would have
been returned by the STR$ELEMENT string manipulation routine. However,
the pointer just indexes into the string so the string is not delimited
and strpbrk should be called again to find the end of the string. It
is possible to subtract the resulting pointers from the two strpbrk
calls to find the length of the substring. If no match was found, a
NULL pointer is returned. The strchr function takes search string and
only one character to search for in the string. The index function is
provided for compatibility reasons.
RELATED INFORMATION
Digital UNIX Functions:
strpbrk(3), strchr(3), strstr(3), strtok(3), wcspbrk(3) delim off
STR$ELEMENT (OpenVMS)