Lines Matching refs:cp

87 	register char *cp, **pp;
173 cp = strchr(buf, (int)'.');
175 cp = index(buf, '.');
177 if (cp == NULL)
180 strcpy(_res.defdname, cp+1);
183 if ((cp = getenv("LOCALDOMAIN")) != NULL) {
184 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname));
195 cp = buf + sizeof ("domain") - 1;
196 while (*cp == ' ' || *cp == '\t')
197 cp++;
198 if ((*cp == '\0') || (*cp == '\n'))
200 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname) - 1);
202 if ((cp = strchr(_res.defdname, (int)'\n')) != NULL)
204 if ((cp = index(_res.defdname, '\n')) != NULL)
206 *cp = '\0';
214 cp = buf + sizeof ("search") - 1;
215 while (*cp == ' ' || *cp == '\t')
216 cp++;
217 if ((*cp == '\0') || (*cp == '\n'))
219 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname) - 1);
221 if ((cp = strchr(_res.defdname, (int)'\n')) != NULL)
223 if ((cp = index(_res.defdname, '\n')) != NULL)
225 *cp = '\0';
230 cp = _res.defdname;
232 *pp++ = cp;
233 for (n = 0; *cp && pp < _res.dnsrch + MAXDNSRCH; cp++) {
234 if (*cp == ' ' || *cp == '\t') {
235 *cp = 0;
238 *pp++ = cp;
243 while (*cp != '\0' && *cp != ' ' && *cp != '\t')
244 cp++;
245 *cp = '\0';
253 cp = buf + sizeof ("nameserver") - 1;
254 while (*cp == ' ' || *cp == '\t')
255 cp++;
256 if ((*cp == '\0') || (*cp == '\n'))
259 inet_addr(cp)) == (unsigned) -1) {
276 (cp = strchr(buf, (int)'.')))
278 (cp = index(buf, '.')))
280 (void) strcpy(_res.defdname, cp + 1);
287 for (cp = _res.defdname, n = 0; *cp; cp++)
288 if (*cp == '.')
290 cp = _res.defdname;
293 cp = strchr(cp, (int)'.');
295 cp = index(cp, '.');
297 *pp++ = ++cp;