Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/string/wide/wcspbrk"

From cppreference.com
< cpp‎ | string‎ | wide
(paste from cpp/string/narrow/*)
 
(paste from cpp/string/narrow/*)
Line 1: Line 1:
{{subst:cpp/string/narrow/strpbrk}}
+
{{cpp/title| strpbrk}}
 +
{{cpp/string/narrow/sidebar}}
 +
{{ddcl list begin}}
 +
{{ddcl list header | cstring}}
 +
{{ddcl list item |
 +
const char* strpbrk( const char* dest, const char* str );
 +
}}
 +
{{ddcl list item |
 +
     char* strpbrk(      char* dest, const char* str );
 +
}}
 +
{{ddcl list end}}
 +
 
 +
Finds the first character in character string pointed to by {{tt|dest}}, that is also in character string pointed to by {{tt|str}}.
 +
 
 +
===Parameters===
 +
{{param list begin}}
 +
{{param list item | dest | pointer to the null-terminated character string to be analyzed}}
 +
{{param list item | src | pointer to the null-terminated character string that contains the characters to search for}}
 +
{{param list end}}
 +
 
 +
===Return value===
 +
 
 +
pointer to the first character in {{tt|dest}}, that is also in {{tt|str}}, or {{cpp|NULL}} if no such character exists.
 +
 
 +
===Example===
 +
{{example cpp
 +
|
 +
| code=
 +
| output=
 +
}}
 +
 
 +
===See also===
 +
{{dcl list begin}}
 +
{{dcl list template | cpp/string/narrow/dcl list strcspn}}
 +
{{dcl list template | cpp/string/narrow/dcl list strchr}}
 +
{{dcl list end}}

Revision as of 11:16, 25 November 2011

Template:cpp/string/narrow/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cstring>
</td>

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

<td class="t-dcl-nopad">
const char* strpbrk( const char* dest, const char* str );
</td>

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

<td class="t-dcl-nopad">
      char* strpbrk(       char* dest, const char* str );
</td>

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

Finds the first character in character string pointed to by dest, that is also in character string pointed to by str.

Contents

Parameters

dest - pointer to the null-terminated character string to be analyzed
src - pointer to the null-terminated character string that contains the characters to search for

Return value

pointer to the first character in dest, that is also in str, or Template:cpp if no such character exists.

Example

Template:example cpp

See also

Template:cpp/string/narrow/dcl list strcspnTemplate:cpp/string/narrow/dcl list strchr