Lines Matching defs:dest
82 clone_group(struct group *dest, struct group const *src)
84 assert(dest != NULL);
90 memset(dest, 0, sizeof(struct group));
93 dest->gr_name = strdup(src->gr_name);
94 assert(dest->gr_name != NULL);
98 dest->gr_passwd = strdup(src->gr_passwd);
99 assert(dest->gr_passwd != NULL);
101 dest->gr_gid = src->gr_gid;
108 dest->gr_mem = (char **)malloc(
110 assert(dest->gr_mem != NULL);
111 memset(dest->gr_mem, 0, (members_num+1) * (sizeof(char *)));
114 dest->gr_mem[cp - src->gr_mem] = strdup(*cp);
115 assert(dest->gr_mem[cp - src->gr_mem] != NULL);