37 dictionary *d = ini_get(h);
38 const char *
res = def;
39 if (d && sec && key) {
42 ini_make_full_key(full,
sizeof(full), sec, key);
44 ini_make_full_key(alt,
sizeof(alt), sec, key);
45 size_t flen = strlen(full);
46 if (flen <
sizeof(alt) && flen > 0) {
47 memcpy(alt, full, flen + 1);
48 for (
size_t i = 0; i < flen; ++i)
54 const char *
s = iniparser_getstring(d, full, def);
56 s = iniparser_getstring(d, alt, def);
Tagged union representing a Fun value.
Value make_string(const char *s)
Construct a string Value by duplicating the given C string.
void free_value(Value v)
Free dynamic storage owned by a Value.