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);
Function Variants This function also has variants named _wcspbrk32 and _wcspbrk64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

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.

Description

This 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.

Return Values
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


Previous Page | Next Page | Table of Contents | Index