Duplicates string
and strips off any leading or trailing whitespace.
The resulting string is returned unless it is empty or null
, in which case the function returns null
.
Free the returned string with g_free.
string |
a string value, or |
a newly-allocated, stripped copy of |