Lines Matching refs:dest
80 clone_protoent(struct protoent *dest, struct protoent const *src)
82 assert(dest != NULL);
88 memset(dest, 0, sizeof(struct protoent));
91 dest->p_name = strdup(src->p_name);
92 assert(dest->p_name != NULL);
95 dest->p_proto = src->p_proto;
102 dest->p_aliases = calloc(aliases_num + 1, sizeof(char *));
103 assert(dest->p_aliases != NULL);
106 dest->p_aliases[cp - src->p_aliases] = strdup(*cp);
107 assert(dest->p_aliases[cp - src->p_aliases] != NULL);