Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

strncat

strncat( 
t_string1 
t_string2 
x_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

t_string1

First string included in the new string.

t_string2

Second string whose characters are appended to t_string1.

x_max

Maximum number of characters from t_string2 that you want to append to the end of t_string1.

Value Returned

t_result

The new string; t_string1 and t_string2 are left unchanged.

Examples

strncat( "abcd" "efghi" 2)        
=> "abcdef"
strncat( "abcd" "efghijk" 5)  
=> "abcdefghi"

Related Topics

String Functions

parseString

substring

strcat

strcmp

strncmp

substring

stringp


Return to top
 ⠀
X