Function

Gntstyle_get_string_list

Declaration [src]

char**
gnt_style_get_string_list (
  const char* group,
  const char* key,
  gsize* length
)

Description [src]

Get the value of a preference in ~/.gntrc.

Available since:2.4.0

Parameters

group const char*
 

The name of the group in the keyfile. If NULL, the prgname will be used first, if available. Otherwise, “general” will be used.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
key const char*
 

The key.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
length gsize*
 

Return location for the number of strings returned, or NULL.

 The data is owned by the caller of the function.

Return value

Returns: An array of utf8
 

NULL terminated string array. The array should be freed with g_strfreev().

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