Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TCString
Description
Concatenate a string with length checking. Unlike the CRT strncat, the size argument is interpreted as the size of the Dest buffer (which must include space for the null terminator) rather than the max number of Src characters to append.
| Name | StrncatTruncateDest |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/CString.h |
| Include Path | #include "Misc/CString.h" |
static CharType * StrncatTruncateDest
(
CharType * Dest,
int32 DestSize,
const CharType * Src
)
pointer to resulting string buffer
Parameters
| Name | Remarks |
|---|---|
| Dest | destination buffer to append to |
| Src | source buffer to copy from |
| DestSize | max size of the dest buffer, including null terminator. Max number of non-terminating characters written into Dest is DestSize - 1. |