Lines Matching refs:zips
753 char** zips = (char**)malloc(z_alloc * sizeof(char*));
754 zips[0] = strdup("../");
780 zips = (char**)realloc(zips, z_alloc * sizeof(char*));
782 zips[z_size++] = strdup(de->d_name);
788 qsort(zips, z_size, sizeof(char*), compare_string);
790 // append dirs to the zips list
793 zips = (char**)realloc(zips, z_alloc * sizeof(char*));
795 memcpy(zips + z_size, dirs, d_size * sizeof(char*));
798 zips[z_size] = NULL;
805 chosen_item = get_menu_selection(headers, zips, 1, chosen_item, device);
807 char* item = zips[chosen_item];
832 for (int i = 0; i < z_size; ++i) free(zips[i]);
833 free(zips);