SHTK_CONFIG_GET_BOOL(3)
SHTK_CONFIG_GET_BOOL(3) Library Functions Manual SHTK_CONFIG_GET_BOOL(3)

shtk_config_get_boolGets the value of a boolean configuration variable

shtk_import config

shtk_config_get_bool var_name

The shtk_config_get_bool function gets the value of the configuration variable var_name, interpreting its contents as a boolean as described in shtk_bool_check(3).

Returns 0 (true) if the variable is set to a truth value; otherwise, including the case where the variable has not been set, returns 1.

shtk(3), shtk_config(3)

shtk_config_get_bool first appeared in shtk 1.0.

November 6, 2014 Debian