strjoin()

This function is used to combine elements of a dyn_string to one string.

Synopsis

string strjoin( dyn_anytype lines, string/char delim);

Parameters

Parameter Description
lines The elements of this dyn_string are combined
delim Delimiter

Return value

The combined string.

Errors

missing or incorrect arguments

Description

The elements of the dyn_string are combined to one string separated by the defined delimiter.

Example

main()
{
  dyn_string lines = makeDynString("a","b","c","d");
  DebugN(strjoin(lines, "_"));
  // The result string is: "a_b_c_d"
}

Assignment

Strings

Availability

CTRL