Lines Matching defs:section
104 /* Parse given INI-style file. May have [section]s, name=value pairs
106 is "" if name=value pair parsed before any section heading. name:value
110 pointer as well as section, name, and value (data only valid for duration
121 char section[MAX_SECTION] = "";
151 if (!handler(user, section, prev_name, start) && !error)
156 /* A "[section]" line */
160 strncpy0(section, start + 1, sizeof(section));
163 /* No ']' found on section line */
190 if (!handler(user, section, name, value) &&
202 static int ini_handler(void *user, char *section, char *name, char *value)
210 for (i = 0; i < strlen(section); i++)
211 section[i] = tolower(section[i]);
214 if (!strcmp(section, requested_section)) {
231 const char *section;
238 section = argv[1];
244 return ini_parse(file_address, file_size, ini_handler, (void *)section);
249 "parse an ini file in memory and merge the specified section into the env",
250 "section [[file-address] file-size]"