Method

GLibStringtruncate

Declaration [src]

GString*
g_string_truncate (
  GString* string,
  gsize len
)

Description [src]

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 returned data is owned by the instance.