Method

GLibStringoverwrite_len

Declaration

GString*
g_string_overwrite_len (
  GString* string,
  gsize pos,
  const gchar* val,
  gssize len
)

Description

Overwrites part of a string, lengthening it if necessary. This function will work with embedded nuls.

Available since:2.14

Parameters

pos gsize
 

The position at which to start overwriting.

val const gchar*
 

The string that will overwrite the string starting at pos.

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

The number of bytes to write from val.

Return value

Returns: GString
 

string.

 The data is owned by the instance.