Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/string/byte/strncat"

From cppreference.com
< cpp‎ | string‎ | byte
m (Text replace - "{{example}}" to "===Example===")
m (Text replace - "{{params}}" to "===Parameters===")
Line 8: Line 8:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{params}}
+
===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 character string to append to}}

Revision as of 17:40, 2 August 2011

Template:cpp/string/narrow/sidebar

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

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

Parameters

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

Return value

dest

Example

Template:example cpp

Template:see also

Template:cpp/string/narrow/dcl list strcatTemplate:cpp/string/narrow/dcl list strcpy