Method

GrlDataget_string

since: 0.1.4

Declaration [src]

const gchar*
grl_data_get_string (
  GrlData* data,
  GrlKeyID key
)

Description [src]

Returns the first string value associated with key from data. If key has no first value, or value is not string, or key is not in data, then NULL is returned.

Available since: 0.1.4

Parameters

key

Type: GrlKeyID

Key to use.

Return value

Type: const gchar*

String associated with key, or NULL in other case. Caller should not change nor free the value.

The data is owned by the instance.
The value is a NUL terminated UTF-8 string.