trimString

fnstring trimString(string str)

Trims leading and trailing whitespace from a string.

Parameters

stra string

Returns

A newly-allocated string that must be freed with [glib.global.gfree]