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.

In the event the key cannot be found, null is returned and throws is set to g_key_file_error_key_not_found. In the event that the group_name cannot be found, null is returned and throws is set to g_key_file_error_group_not_found.

Parameters:

this

a KeyFile

group_name

a group name

key

a key

length

return location for the number of returned strings, or null

Returns:

a null-terminated string array or null if the specified key cannot be found. The array should be freed with strfreev.