Function

Gntstyle_parse_bool

since: 2.1

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

Parameters

value

Type: 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

Type: gboolean

The boolean value.