Method
GLibKeyFileset_string
Declaration
void
g_key_file_set_string (
GKeyFile* key_file,
const gchar* group_name,
const gchar* key,
const gchar* string
)
Description
Associates a new string value with key
under group_name
.
If key
cannot be found then it is created.
If group_name
cannot be found then it is created.
Unlike g_key_file_set_value(), this function handles characters
that need escaping, such as newlines.
Available since: | 2.6 |
Parameters
group_name |
const gchar* |
A group name. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
key |
const gchar* |
A key. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
string |
const gchar* |
A string. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. |