Method

GLibStringtruncate

Declaration

GString*
g_string_truncate (
  GString* string,
  gsize len
)

Description

Cuts off the end of the GString, leaving the first len bytes.

Parameters

len

Type: gsize

The new size of string.

Return value

Type: GString

string.

The data is owned by the instance.