wmemchr

Locates the first occurence of a specified wide character in an array of wide characters.

Format

#include  <wchar.h>

wchar_t wmemchr  (const wchar_t *s, wchar_t c,
                 size_t n);
Function Variants This function also has variants named _wmemchr32 and _wmemchr64 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

s
A pointer to an array of wide characters to be searched.
c
The wide character value to search for.
n
The maximum number of wide characters in the array to be searched.

Description

This function locates the first occurrence of the specified wide character in the initial n wide characters of the array pointed to by s.

Return Values
A pointer to the first occurrence of the wide character in the array. 
NULL  The specified wide character does not occur in the array. 


Previous Page | Next Page | Table of Contents | Index