Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | string‎ | wide
m (Text replace - "cstring" to "cwchar")
Line 1: Line 1:
{{cpp/title|wmemcpy}}
+
{{c/title|wmemcpy}}
{{cpp/string/wide/sidebar}}
+
{{c/string/wide/sidebar}}
{{ddcl | header=cwchar |
+
{{ddcl | header=wchar.h |
wchar_t* wmemcpy( wchar_t* dest, const wchar_t* src, std::size_t count );
+
wchar_t* wmemcpy( wchar_t* dest, const wchar_t* src, size_t count );
 
}}
 
}}
  
Copies {{tt|count}} wide characters from the object pointed to by {{tt|src}} to the object pointed to by {{tt|dest}}. If the objects overlap, the behavior is undefined. If the objects are not trivially copyable (scalars, arrays, C-compatible structs), the behavior is undefined.
+
Copies {{tt|count}} wide characters from the object pointed to by {{tt|src}} to the object pointed to by {{tt|dest}}. If the objects overlap, the behavior is undefined.
  
 
===Parameters===
 
===Parameters===
Line 27: Line 27:
 
===See also===
 
===See also===
 
{{dcl list begin}}
 
{{dcl list begin}}
{{dcl list template | cpp/string/wide/dcl list wmemmove}}
+
{{dcl list template | c/string/wide/dcl list wmemmove}}
{{dcl list template | cpp/algorithm/dcl list copy}}
+
{{dcl list template | cpp/algorithm/dcl list copy_backward}}
+
{{dcl list template | cpp/types/dcl list is_trivially_copyable}}
+
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 04:50, 13 April 2012

Template:c/string/wide/sidebar

Defined in header <wchar.h>
wchar_t* wmemcpy( wchar_t* dest, const wchar_t* src, size_t count );

Copies count wide characters from the object pointed to by src to the object pointed to by dest. If the objects overlap, the behavior is undefined.

Contents

Parameters

dest - pointer to the memory location to copy to
src - pointer to the memory location to copy from
count - number of bytes to copy

Return value

dest

Example

Template:example cpp

See also

Template:c/string/wide/dcl list wmemmove