Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | string‎ | wide
m (Text replace - "char *" to "wchar_t *")
Line 2: Line 2:
 
{{cpp/string/wide/sidebar}}
 
{{cpp/string/wide/sidebar}}
 
{{ddcl | header=cstring |
 
{{ddcl | header=cstring |
wchar_t *strncat( wchar_t *dest, const wchar_t *src, size_t count );
+
wchar_t *wcsncat( wchar_t *dest, const wchar_t *src, std::size_t count );
 
}}
 
}}
  
Appends a character string pointed to by {{tt|src}} to a character string pointed to by {{tt|dest}}. At most {{tt|count}} characters are copied. The resulting character string is null-terminated. If the strings overlap, the behavior is undefined.  
+
Appends a wide string pointed to by {{tt|src}} to a wide string pointed to by {{tt|dest}}. At most {{tt|count}} wide characters are copied. The resulting wide string is null-terminated. If the strings overlap, the behavior is undefined.  
  
 
===Parameters===
 
===Parameters===
 
{{param list begin}}
 
{{param list begin}}
{{param list item | dest | pointer to the null-terminated character string to append to}}
+
{{param list item | dest | pointer to the null-terminated wide string to append to}}
{{param list item | src | pointer to the null-terminated character string to copy from}}
+
{{param list item | src | pointer to the null-terminated wide string to copy from}}
{{param list item | count | maximum number of characters to copy}}
+
{{param list item | count | maximum number of wide characters to copy}}
 
{{param list end}}
 
{{param list end}}
  

Revision as of 12:03, 25 November 2011

Template:cpp/string/wide/sidebar

Defined in header <cstring>
wchar_t *wcsncat( wchar_t *dest, const wchar_t *src, std::size_t count );

Appends a wide string pointed to by src to a wide string pointed to by dest. At most count wide characters are copied. The resulting wide string is null-terminated. If the strings overlap, the behavior is undefined.

Contents

Parameters

dest - pointer to the null-terminated wide string to append to
src - pointer to the null-terminated wide string to copy from
count - maximum number of wide characters to copy

Return value

dest

Example

Template:example cpp

See also

Template:cpp/string/wide/dcl list wcscatTemplate:cpp/string/wide/dcl list wcscpy