Lines Matching defs:dest
146 clone_hostent(struct hostent *dest, struct hostent const *src)
148 assert(dest != NULL);
156 memset(dest, 0, sizeof(struct hostent));
159 dest->h_name = strdup(src->h_name);
160 assert(dest->h_name != NULL);
163 dest->h_addrtype = src->h_addrtype;
164 dest->h_length = src->h_length;
171 dest->h_aliases = (char **)malloc((aliases_num + 1) *
173 assert(dest->h_aliases != NULL);
174 memset(dest->h_aliases, 0, (aliases_num + 1) *
178 dest->h_aliases[cp - src->h_aliases] = strdup(*cp);
179 assert(dest->h_aliases[cp - src->h_aliases] != NULL);
188 dest->h_addr_list = (char **)malloc((addrs_num + 1) *
190 assert(dest->h_addr_list != NULL);
191 memset(dest->h_addr_list, 0, (addrs_num + 1) *
196 dest->h_addr_list[offset] =
198 assert(dest->h_addr_list[offset] != NULL);
199 memcpy(dest->h_addr_list[offset],