VMS Help  —  CRTL  wcspbrk
    Searches a wide-character string for the first occurrence of one
    of a specified set of wide characters.

    Format

      #include  <wchar.h>

      wchar_t *wcspbrk  (const wchar_t *wstr, const wchar_t
                        *charset);

1  –  Function Variants

    The wcspbrk function has variants named _wcspbrk32 and _wcspbrk64
    for use with 32-bit and 64-bit pointer sizes, respectively.

2  –  Arguments

 wstr

    A pointer to a wide-character string. If this is a null string,
    NULL is returned.

 charset

    A pointer to a wide-character string containing the set of wide
    characters for which the function will search.

3  –  Description

    The wcspbrk function scans the wide characters in the string,
    stops when it encounters a wide character found in charset, and
    returns the address of the first character in the string that
    appears in the character set.

4  –  Return Values

    x                  The address of the first wide character in the
                       string that is in the set.
    NULL               Indicates that none of the characters are in
                       charset.
Close Help