Function

GLibstrjoin

Declaration [src]

gchar*
g_strjoin (
  const gchar* separator,
  ...
)

Description [src]

Joins a number of strings together to form one long string, with the optional separator inserted between each of them.

This function is not directly available to language bindings.

Parameters

separator

Type: const gchar*

A string to insert between each of the strings.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
...

Type: 

A NULL-terminated list of strings to join.

Return value

Type: gchar*

A newly-allocated string containing all of the strings joined together, with separator between them.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.