Function

GLibref_string_acquire

Declaration [src]

char*
g_ref_string_acquire (
  char* str
)

Description [src]

Acquires a reference on a string.

Available since:2.58

Parameters

str char*
 

A reference counted string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: char*
 

The given string, with its reference count increased.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.