| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

sym_set_value

#include "sflsymb.h"
void
sym_set_value (
    SYMBOL *symbol,                     /*  Symbol to change                 */
    const char *value)                  /*  New value to assign              */

Synopsis

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.

Source Code - (sflsymb.c)

{
    ASSERT (symbol);

    mem_strfree (&symbol-> value);      /*  Free existing value if any       */
    symbol-> value = mem_strdup (value);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation