Namespaces
Variants
Views
Actions

std::wmemchr

From cppreference.com
< cpp‎ | string‎ | wide
Revision as of 14:37, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cwchar>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
const wchar_t* wmemchr( const wchar_t* ptr, wchar_t ch, std::size_t count );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
      wchar_t* wmemchr(       wchar_t* ptr, wchar_t ch, std::size_t count );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Locates the first occurrence of wide character ch in the initial count wide characters of the object pointed to by ptr.

Contents

Parameters

ptr - pointer to the object to be examined
ch - wide character to search for
count - number of characters to examine

Return value

Pointer to the location of the character, or NULL if no such character is found.

Example

See also

Template:cpp/string/wide/dcl list wcschrTemplate:cpp/algorithm/dcl list find
C documentation for wmemchr