Back to libut API Reference


SYNOPSIS

    #include "libut/ut.h"
    int UT_var_get(char *name, void *value);


DESCRIPTION

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.


RETURN VALUE

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.


RELATED CONTROL PORT COMMANDS

The var control port command lists and sets the configuration variables.


SEE ALSO

UT_var_create(3), UT_var_set(3), UT_var_bindc(3), UT_var_reg_cb(3), UT_var_restrict(3)


AUTHOR

Troy D. Hanson <thanson@users.sourceforge.net>