Method

GLibKeyFilehas_group

since: 2.6

Declaration

gboolean
g_key_file_has_group (
  GKeyFile* key_file,
  const gchar* group_name
)

Description

Looks whether the key file has the group group_name.

Available since: 2.6

Parameters

group_name

Type: const gchar*

A group name.

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

Return value

Type: gboolean

TRUE if group_name is a part of key_file, FALSE otherwise.