StringG.setSize

Sets the length of a #GString. If the length is less than the current length, the string will be truncated. If the length is greater than the current length, the contents of the newly added area are undefined. (However, as always, string->str[string->len] will be a nul byte.)

class StringG
setSize
(
size_t len
)

Parameters

len size_t

the new length

Return Value

Type: StringG

@string

Meta