|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#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 */
Returns value for specified symbol, as a long value. If the symbol is not defined in the table, returns a default value.
value = sym_get_number (env, "MAX_USERS", 10);
{
char
*value;
value = sym get value (table, name, NULL);
return (value? atol (value): default_value);
}
| | << | < | > | >> |
|