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 gsize
 

The new size of string.

Return value

Returns: GString
 

string.

 The data is owned by the instance.