Lines Matching refs:names
175 char** names = malloc(size * sizeof(char*)); in _archive_dir() local
176 if (names == NULL) { in _archive_dir()
190 names = realloc(names, size * sizeof(char*)); in _archive_dir()
191 if (names == NULL) { in _archive_dir()
197 names[entries] = strdup(de->d_name); in _archive_dir()
198 if (names[entries] == NULL) { in _archive_dir()
206 qsort(names, entries, sizeof(char*), compare); in _archive_dir()
209 t = strlen(names[i]); in _archive_dir()
211 memcpy(in + ilen + 1, names[i], t + 1); in _archive_dir()
215 memcpy(out + olen + 1, names[i], t + 1); in _archive_dir()
218 memcpy(out, names[i], t + 1); in _archive_dir()
225 free(names[i]); in _archive_dir()
227 free(names); in _archive_dir()