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

 

srcdoc W (sflini.c 649): function ini_dyn_default not known

#include "(unknown)"
char *
ini_dyn_default (
    SYMTAB *symtab,
    const char *section,
    const char *keyword,
    const char *default_value)

Synopsis

As ini_dyn_value, but creates an entry with the default value if none already exists.

Source Code - (sflini.c)

{
    ASSERT (section);
    if (keyword && *keyword)
        snprintf (ini_keyword, sizeof (ini_keyword), "%s:%s", section, keyword);
    else
        strncpy  (ini_keyword, section, sizeof (ini_keyword));

    strlwc (ini_keyword);
    if (!sym lookup symbol (symtab, ini_keyword))
        sym assume symbol (symtab, ini_keyword, default_value);

    return (sym get value (symtab, ini_keyword, default_value));
}

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