Lines Matching defs:zips
633 char** zips = (char**)malloc(z_alloc * sizeof(char*));
634 zips[0] = strdup("../");
659 zips = (char**)realloc(zips, z_alloc * sizeof(char*));
661 zips[z_size++] = strdup(de->d_name);
667 qsort(zips, z_size, sizeof(char*), compare_string);
669 // append dirs to the zips list
672 zips = (char**)realloc(zips, z_alloc * sizeof(char*));
674 memcpy(zips + z_size, dirs, d_size * sizeof(char*));
677 zips[z_size] = NULL;
682 chosen_item = get_menu_selection(headers, zips, 1, chosen_item, device);
684 char* item = zips[chosen_item];
724 for (i = 0; i < z_size; ++i) free(zips[i]);
725 free(zips);