Lines Matching refs:dirs
527 char** dirs = (char**)malloc(d_alloc * sizeof(char*));
544 dirs = (char**)realloc(dirs, d_alloc * sizeof(char*));
546 dirs[d_size] = (char*)malloc(name_len + 2);
547 strcpy(dirs[d_size], de->d_name);
548 dirs[d_size][name_len] = '/';
549 dirs[d_size][name_len+1] = '\0';
563 qsort(dirs, d_size, sizeof(char*), compare_string);
566 // append dirs to the zips list
571 memcpy(zips + z_size, dirs, d_size * sizeof(char*));
572 free(dirs);