Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TCString
Description
Append at most SrcLen characters from Src to Dest. Append a null terminator after the last character from Src. This version matches the behavior of CRT strncat: the size given is the maximum number to append from the Src str. If you instead want to specify the length of the destination buffer, call StrncatTruncateDest.
| Name | StrncatTruncateSrc |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/CString.h |
| Include Path | #include "Misc/CString.h" |
static CharType * StrncatTruncateSrc
(
CharType * Dest,
const CharType * Src,
int32 SrcLen
)
pointer to resulting string buffer
Parameters
| Name | Remarks |
|---|---|
| Dest | destination buffer to append to |
| Src | source buffer to copy from |
| SrcLen | maximum number of characters to copy from Src. If Src length is less than SrcLen, all characters up to the null terminator, and the null terminator, will be copied into Dest. |