Function

Gntstyle_parse_bool

Declaration [src]

gboolean
gnt_style_parse_bool (
  const char* value
)

Description [src]

Parse a boolean preference. For example, if ‘value’ is “false” (ignoring case) or “0”, the return value will be FALSE, otherwise TRUE.

Available since:2.1.0

Parameters

value const char*
 

The value of the boolean setting as a string.

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

Return value

Returns: gboolean
 

The boolean value.