util_strdup_strip


Description:


[ Version ( since = "3.6" ) ]
public string? util_strdup_strip (string? string)

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.

Parameters:

string

a string value, or null

Returns:

a newly-allocated, stripped copy of string, or null


Namespace: E