Namespaces
Variants
Views
Actions

std::strncat

From cppreference.com
< cpp‎ | string‎ | byte
Revision as of 17:26, 4 May 2012 by P12bot (Talk | contribs)

Template:cpp/string/byte/sidebar

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

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

Contents

Parameters

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

Return value

dest

Example

See also

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