#include "libut/ut.h" int UT_var_get(char *name, void *value);
This function gets the value of the configuration variable having the given name. The result is placed in value which must be a pointer to an int, double, or char*, depending on whether the configuration variable is of type UT_var_int, UT_var_double, or UT_var_string, respectively.
The return value is always 0. If name refers to a configuration variable that doesn't exist, it logged as a Fatal error, and the application exits with exit status -1.
The var control port command lists and sets the configuration variables.
UT_var_create(3), UT_var_set(3), UT_var_bindc(3),
UT_var_reg_cb(3), UT_var_restrict(3)
Troy D. Hanson <thanson@users.sourceforge.net>