Lines Matching defs:dest
71 clone_addrinfo(struct addrinfo *dest, struct addrinfo const *src)
73 assert(dest != NULL);
76 memcpy(dest, src, sizeof(struct addrinfo));
78 dest->ai_canonname = strdup(src->ai_canonname);
81 dest->ai_addr = (struct sockaddr *)malloc(src->ai_addrlen);
82 assert(dest->ai_addr != NULL);
83 memcpy(dest->ai_addr, src->ai_addr, src->ai_addrlen);
87 dest->ai_next = (struct addrinfo *)malloc(
89 assert(dest->ai_next != NULL);
90 clone_addrinfo(dest->ai_next, src->ai_next);