SHTK_CONFIG_HAS(3) BSD Library Functions Manual SHTK_CONFIG_HAS(3)NAMEshtk_config_has — Checks if a configuration variable is set
LIBRARY
shtk_import config
SYNOPSISshtk_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 vari‐
able 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 ALSOshtk(3), shtk_config(3)HISTORYshtk_config_has first appeared in shtk 1.0.
BSD November 6, 2014 BSD