Method

GObjectValuedup_string

Declaration

gchar*
g_value_dup_string (
  const GValue* value
)

Description

Get a copy the contents of a G_TYPE_STRING GValue.

Return value

Type: gchar*

A newly allocated copy of the string content of value.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.