Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | string‎ | wide
m (Text replace - "{{cpp/title| str" to "{{cpp/title| wcs")
m (Text replace - "{{cpp/string/narrow/sidebar}}" to "{{cpp/string/wide/sidebar}}")
Line 1: Line 1:
 
{{cpp/title| wcsspn}}
 
{{cpp/title| wcsspn}}
{{cpp/string/narrow/sidebar}}
+
{{cpp/string/wide/sidebar}}
 
{{ddcl | header=cstring |
 
{{ddcl | header=cstring |
 
size_t strspn( const char *dest, const char *src );
 
size_t strspn( const char *dest, const char *src );

Revision as of 11:32, 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 strcspnTemplate:cpp/string/narrow/dcl list strpbrk