Function

GLibref_string_new

Declaration

char*
g_ref_string_new (
  const char* str
)

Description

Creates a new reference counted string and copies the contents of str into it.

Available since:2.58

Parameters

str const char*
 

A NUL-terminated string.

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

Return value

Returns: utf8
 

The newly created reference counted string.

 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.