GLib.String.new
Description: Reference for GLib.String.new

### Function

# GLib Stringnew

#### Declaration

    GString*
    g_string_new (
      const gchar* init
    )

#### Description

Creates a new `GString`, initialized with the given string.

#### Parameters

`init`

  Type: `const gchar*`

  The initial text to copy into the string, or `NULL` to start with an empty string.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `GString`

The new `GString`.

The caller of the function takes ownership of the data, and is responsible for freeing it.