ImplodeStrings

Last Updated2007-05-22
Created At2007-05-22

Joins an array of strings into one string, with a "join" string inserted in between each given string. This function complements ExplodeString.

stock int ImplodeStrings(const char[][] strings, int numStrings, const char[] join, char[] buffer, int maxLength)

Parameters

const char[][] strings
An array of strings.
int numStrings
Number of strings in the array.
const char[] join
The join string to insert between each string.
char[] buffer
Output buffer to write the joined string to.
int maxLength
Maximum length of the output buffer.

Return Value

int Number of bytes written to the output buffer.