Lines Matching refs:dirs
627 char** dirs = (char**)malloc(d_alloc * sizeof(char*));
644 dirs = (char**)realloc(dirs, d_alloc * sizeof(char*));
646 dirs[d_size] = (char*)malloc(name_len + 2);
647 strcpy(dirs[d_size], de->d_name);
648 dirs[d_size][name_len] = '/';
649 dirs[d_size][name_len+1] = '\0';
663 qsort(dirs, d_size, sizeof(char*), compare_string);
666 // append dirs to the zips list
671 memcpy(zips + z_size, dirs, d_size * sizeof(char*));
672 free(dirs);