Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | string‎ | wide
m (Text replace - "{{cpp/string/narrow/sidebar}}" to "{{cpp/string/wide/sidebar}}")
m (Text replace - "dcl list str" to "dcl list wcs")
Line 26: Line 26:
 
===See also===
 
===See also===
 
{{dcl list begin}}
 
{{dcl list begin}}
{{dcl list template | cpp/string/narrow/dcl list strcspn}}
+
{{dcl list template | cpp/string/narrow/dcl list wcscspn}}
{{dcl list template | cpp/string/narrow/dcl list strpbrk}}
+
{{dcl list template | cpp/string/narrow/dcl list wcspbrk}}
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 11:39, 25 November 2011

Template:cpp/string/wide/sidebar

Defined in header <cstring>
size_t strspn( const char *dest, const char *src );

Returns the length of the maximum initial segment of the character string pointed to by dest, that consists of only the characters found in character string pointed to by src.

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

the length of the maximum initial segment that contains only characters from character string pointed to by src

Example

Template:example cpp

See also

Template:cpp/string/narrow/dcl list wcscspnTemplate:cpp/string/narrow/dcl list wcspbrk