strncat
strncat(t_string1t_string2x_max) =>t_result
Description
Creates a new string by appending a maximum number of characters from t_string2 to t_string1.
Concatenates input strings. Similar to strcat except that at most x_max characters from t_string2 are appended to the contents of t_string1 to create the new string. t_string1 and t_string2 are left unchanged.
Arguments
|
Maximum number of characters from t_string2 that you want to append to the end of t_string1. |
Value Returned
Examples
strncat( "abcd" "efghi" 2)
=> "abcdef"
strncat( "abcd" "efghijk" 5)
=> "abcdefghi"
Related Topics
Return to top