nw::ut::strncat Function

Syntax

size_t strncat(
     char * dest,
     std::size_t destCount,
     const char * src,
     std::size_t srcCount
);

Arguments

Name Description
in dest Address of the buffer to be added to.
in destCount Size copied.
in src Address of the source character string.
in srcCount Size to be added.

Return Values

Returns the added string.

Description

Adds to a string.

Copies the character string given by source up to the character count given by count, and always adds a null termination character. Although the character string is truncated if destCount is smaller than srcCount, a null terminator is always added.


CONFIDENTIAL