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

 

sym_get_number

#include "sflsymb.h"
long
sym_get_number (
    const SYMTAB *table,                /*  Symbol table to process          */
    const char *name,                   /*  Name of symbol to look for       */
    const long default_value)           /*  Value to return if not defined   */

Synopsis

Returns value for specified symbol, as a long value. If the symbol is not defined in the table, returns a default value.

Examples

    value = sym_get_number (env, "MAX_USERS", 10);

Source Code - (sflsymb.c)

{
    char
        *value;

    value = sym get value (table, name, NULL);
    return (value? atol (value): default_value);
}

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