Lines Matching defs:line
62 static inline int get_hosts_str(char *line, int length, FILE *f, int *i)
65 char *ret = fgets(line, length, f);
67 size_t len = strlen(line);
68 if (len > 0 && line[len - 1] != '\n' && len < length - 1) {
69 line[len] = '\n';
70 line[len + 1] = '\0';
76 memcpy(line, fixed_hosts[*i], strlen(fixed_hosts[*i]));
85 char line[512];
91 while (i < FIXED_HOSTS_MAX_LENGTH && get_hosts_str(line, sizeof line, f, &i) && cnt < MAXADDRS) {
94 if ((p=strchr(line, '#'))) *p++='\n', *p=0;
95 for(p=line+1; (p=strstr(p, name)) &&
100 for (p=line; *p && !isspace(*p); p++);
102 switch (name_from_numeric(buf+cnt, line, family)) {