|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflsymb.h"
Bool
sym_get_boolean (
const SYMTAB *table, /* Symbol table to process */
const char *name, /* Name of symbol to look for */
const Bool default_value) /* Value to return if not defined */
Returns value for specified symbol, as TRUE or FALSE. If the symbol is not defined in the table, returns a default value.
value = sym_get_boolean (env, "CONNECTS_ENABLED", TRUE);
{
char
*value;
value = sym get value (table, name, NULL);
return (value? (conv str bool (value) != 0): default_value);
}
| | << | < | > | >> |
|