GLib.String.insert (original) (raw)

GLib

API Version: 2.0

Library Version: 2.85.1

Type
Methods

Method

GLibStringinsert

Declaration [src]


GString*
g_string_insert (
  GString* string,
  gssize pos,
  const gchar* val
)

Description [src]

Inserts a copy of a string into a GString, expanding it if necessary.

Parameters

pos

Type: gssize

The position to insert the copy of the string.

val

Type: const gchar*

The string to insert.

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

Return value

The returned data is owned by the instance.