- Reference
- Script reference
- Strings and buffers
strcat
Copy the string source to the end of dest .
Concatenate strings
Description#
strcat( dest[], const source[], maxlength=sizeof dest )
Copy the string source to the end of dest.
Parameters#
dest | destination string |
source | string to be added to dest |
maxlength (optional) | max total length of the result |
Return value#
Returns the number of characters added to the string.
Example usage#
new s{20} = "Hello ";
strcat(s, "World"); // returns 5
// s is now "Hello World"Last updated Sep 2, 2019