DragonFly On-Line Manual Pages

Search: Section:  


SHTK_CONFIG_HAS(3)    DragonFly Library Functions Manual    SHTK_CONFIG_HAS(3)

NAME

shtk_config_has - Checks if a configuration variable is set

LIBRARY

shtk_import config

SYNOPSIS

shtk_config_has var_name

DESCRIPTION

The shtk_config_has function checks if the configuration variable var_name has been previously set by a call to shtk_config_set(3) within the script or by the user in the configuration file. Note that shtk_config_has properly distinguishes the case between a variable that has never been defined and a variable that has been defined to the empty value.

RETURN VALUES

Returns 0 (true) if var_name has been defined; 1 (false) otherwise.

SEE ALSO

shtk(3), shtk_config(3)

HISTORY

shtk_config_has first appeared in shtk 1.0. DragonFly 6.5-DEVELOPMENT November 6, 2014 DragonFly 6.5-DEVELOPMENT

Search: Section: