| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflsymb.h" void sym_set_value ( SYMBOL *symbol, /* Symbol to change */ const char *value) /* New value to assign */
Assigns a new value for the symbol; this frees any previously assigned value and duplicates the supplied value, which must be a null terminated string. If you want to assign binary values, you can use the symbol's data block. If the value is NULL, any existing value is freed and the symbol value pointer is set to NULL.
{ ASSERT (symbol); mem_strfree (&symbol-> value); /* Free existing value if any */ symbol-> value = mem_strdup (value); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |