Function

FwupdPluginstrstrip

Declaration [src]

gchar*
fu_strstrip (
  const gchar* str
)

Description [src]

Removes leading and trailing whitespace from a constant string.

Available since:1.8.2

Parameters

str const gchar*
 

A string, e.g. test

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: utf8
 

Newly allocated string.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.