Lines Matching defs:line
26 static int read_ip(char *line, void *arg)
32 if (!inet_aton(line, addr)) {
33 if ((host = gethostbyname(line)))
41 static int read_ip(char *line, void *arg)
47 if (!inet_aton(line, &addr)) {
48 if ((host = gethostbyname(line)))
58 static int read_str(char *line, void *arg)
63 *dest = strdup(line);
69 static int read_u32(char *line, void *arg)
73 *dest = strtoul(line, &endptr, 0);
78 static int read_yn(char *line, void *arg)
83 if (!strcasecmp("yes", line))
85 else if (!strcasecmp("no", line))
94 static int read_opt(char *line, void *arg)
105 if (!(opt = strtok(line, " \t="))) return 0;
201 char buffer[80], orig[80], *token, *line;
219 line = token + strcspn(token, " \t=");
220 if (*line == '\0') continue;
221 *line = '\0';
222 line++;
225 line = line + strspn(line, " \t=");
227 for (i = strlen(line); i > 0 && isspace(line[i - 1]); i--);
228 line[i] = '\0';
232 if (!keywords[i].handler(line, keywords[i].var)) {