get_string_list


Description:

[ CCode ( array_length = true , array_length_type = "gsize" , array_null_terminated = true ) ]
public string[] get_string_list (string group_name, string key) throws KeyFileError

Returns the values associated with key under group_name.

If the key cannot be found, [error@GLib.KeyFileError.KEY_NOT_FOUND] is returned. If the group_name cannot be found, [ error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned.

Parameters:

this

a key file

group_name

a group name

key

a key

length

return location for the number of returned strings, or `NULL` to ignore

Returns:

a `NULL`-terminated string array or `NULL` if the specified key cannot be found. The array should be freed with [func@GLib.strfreev].