Lines Matching defs:n
90 register int n;
109 if ((n = dn_expand(answer->buf, eom,
114 cp += n + QFIXEDSZ;
116 n = strlen(bp) + 1;
117 bp += n;
118 buflen -= n;
138 if ((n = dn_expand(answer->buf, eom,
141 cp += n;
146 n = _getshort(cp);
149 cp += n;
153 n = strlen(bp) + 1;
154 bp += n;
155 buflen -= n;
159 if ((n = dn_expand(answer->buf, eom,
161 cp += n;
164 cp += n;
171 printf("unexpected answer type %d, size %d\n",
172 type, n);
174 cp += n;
178 if (n != host.h_length) {
179 cp += n;
183 cp += n;
187 host.h_length = n;
198 if (bp + n >= &hostbuf[sizeof (hostbuf)]) {
201 printf("size (%d) too big\n", n);
206 memcpy((void *)(*hap++ = bp), (void *)cp, n);
208 bcopy(cp, *hap++ = bp, n);
210 bp += n;
211 cp += n;
236 int n;
254 if ((n = res_search(name, C_IN, T_A, buf.buf, sizeof (buf))) < 0) {
257 printf("res_search failed\n");
264 return (getanswer(&buf, n, 0));
274 int n;
286 n = res_query(qbuf, C_IN, T_PTR, (u_char *)&buf, sizeof (buf));
287 if (n < 0) {
290 printf("res_query failed\n");
296 hp = getanswer(&buf, n, 1);
385 cp = any(p, "#\n");