EAGLE Help Light

strjoin()???

Funkce
Joins a string array to form a single string.

Zápis
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.

Viz také strsplit, lookup, fileread

Příklad


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


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH