Lines Matching defs:src
290 copytobuf(struct hostent *src, struct hostent *hptr, char *buf, int buflen) {
301 for (i = 0; src->h_addr_list[i]; i++, nptr++) {
302 len += src->h_length;
304 for (i = 0; src->h_aliases[i]; i++, nptr++) {
305 len += strlen(src->h_aliases[i]) + 1;
307 len += strlen(src->h_name) + 1;
317 hptr->h_addrtype = src->h_addrtype;
318 n = hptr->h_length = src->h_length;
327 for (i = 0; src->h_addr_list[i]; i++, ptr++) {
328 memmove(cp, src->h_addr_list[i], n);
338 n = strlen(src->h_name) + 1;
339 strcpy(cp, src->h_name);
347 for (i = 0; src->h_aliases[i]; i++) {
348 n = strlen(src->h_aliases[i]) + 1;
349 strcpy(cp, src->h_aliases[i]);