Lines Matching defs:dest
82 clone_rpcent(struct rpcent *dest, struct rpcent const *src)
84 assert(dest != NULL);
90 memset(dest, 0, sizeof(struct rpcent));
93 dest->r_name = strdup(src->r_name);
94 assert(dest->r_name != NULL);
97 dest->r_number = src->r_number;
104 dest->r_aliases = (char **)malloc((aliases_num+1) * (sizeof(char *)));
105 assert(dest->r_aliases != NULL);
106 memset(dest->r_aliases, 0, (aliases_num+1) * (sizeof(char *)));
109 dest->r_aliases[cp - src->r_aliases] = strdup(*cp);
110 assert(dest->r_aliases[cp - src->r_aliases] != NULL);