EAGLE Help

strjoin()


Function
Joins a string array to form a single string.

Syntax
string strjoin(string array[], char separator);

Returns
The strjoin function returns the combined entries of array.

Description
strjoin joins all entries in array, delimited by the given separator and returns the resulting string.

If separator is the newline character ("\n") the resulting string will be terminated with a newline character. This is done to have a text file that consists of N lines (each of which is terminated with a newline) and is read in with the fileread() function and split into an array of N strings to be joined to the original string as read from the file.

See also strsplit, lookup, fileread

Example

string a[] = { "Field 1", "Field 2", "Field 3" };
string s = strjoin(a, ':');

Index Copyright © 2005 CadSoft Computer GmbH