variable

Name

variable -- 

Synopsis



int         variable_set                    (char *variable,
                                             char *value);
int         variable_unset                  (const char *variable);
char*       variable_get                    (const char *variable);

Description

Details

variable_set ()

int         variable_set                    (char *variable,
                                             char *value);

Set the specified variable to the given value. The variable is created if it doesn't exit.

variable :

The variable in question.

value :

Value to assign to the variable.

Returns :

0 on success, -1 on error.


variable_unset ()

int         variable_unset                  (const char *variable);

Delete the specified variable from the variable lists.

variable :

The variable in question.

Returns :

0 on success, -1 if variable could not be found.


variable_get ()

char*       variable_get                    (const char *variable);

Get value for the specified variable.

variable :

Variable to get the value from.

Returns :

Value of the variable, or NULL if the variable is not set.