Lines Matching refs:cp

96 	register char *cp, **pp;
174 cp = strchr(buf, (int)'.');
176 cp = index(buf, '.');
178 if (cp == NULL)
181 strcpy(_res.defdname, cp+1);
184 if ((cp = getenv("LOCALDOMAIN")) != NULL) {
185 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname));
196 cp = buf + sizeof ("domain") - 1;
197 while (*cp == ' ' || *cp == '\t')
198 cp++;
199 if ((*cp == '\0') || (*cp == '\n'))
201 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname) - 1);
203 if ((cp = strchr(_res.defdname, (int)'\n')) != NULL)
205 if ((cp = index(_res.defdname, '\n')) != NULL)
207 *cp = '\0';
215 cp = buf + sizeof ("search") - 1;
216 while (*cp == ' ' || *cp == '\t')
217 cp++;
218 if ((*cp == '\0') || (*cp == '\n'))
220 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname) - 1);
222 if ((cp = strchr(_res.defdname, (int)'\n')) != NULL)
224 if ((cp = index(_res.defdname, '\n')) != NULL)
226 *cp = '\0';
231 cp = _res.defdname;
233 *pp++ = cp;
234 for (n = 0; *cp && pp < _res.dnsrch + MAXDNSRCH; cp++) {
235 if (*cp == ' ' || *cp == '\t') {
236 *cp = 0;
239 *pp++ = cp;
244 while (*cp != '\0' && *cp != ' ' && *cp != '\t')
245 cp++;
246 *cp = '\0';
254 cp = buf + sizeof ("nameserver") - 1;
255 while (*cp == ' ' || *cp == '\t')
256 cp++;
257 if ((*cp == '\0') || (*cp == '\n'))
260 inet_addr(cp)) == (unsigned) -1) {
277 (cp = strchr(buf, (int)'.')))
279 (cp = index(buf, '.')))
281 (void) strcpy(_res.defdname, cp + 1);
288 for (cp = _res.defdname, n = 0; *cp; cp++)
289 if (*cp == '.')
291 cp = _res.defdname;
294 cp = strchr(cp, (int)'.');
296 cp = index(cp, '.');
298 *pp++ = ++cp;