Method

GLibKeyFileget_groups

Declaration

gchar**
g_key_file_get_groups (
  GKeyFile* key_file,
  gsize* length
)

Description

Returns all groups in the key file loaded with key_file. The array of returned groups will be NULL-terminated, so length may optionally be NULL.

Available since:2.6

Parameters

length gsize*
 

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

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: An array of utf8
 

A newly-allocated NULL-terminated array of strings. Use g_strfreev() to free it.

 The caller of the method takes ownership of the data, and is responsible for freeing it.