Lines Matching defs:matches
916 *p = '\0'; /* so no more matches */
941 * use it instead of its standard function to find matches, which
949 char **matches = NULL;
957 if ((matches = malloc(size * sizeof(matches[0]))) == NULL)
984 if (reallocarr(&matches, size,
985 sizeof(*matches)))
991 matches[i] = strdup(entry->d_name);
998 free(matches);
1002 matches[0] = strdup(matches[1]);
1003 matches[i + 1] = NULL;
1007 qsort(matches + 1, i, sizeof(matches[0]), comparator);
1009 if (strcmp(matches[j] + curpos, matches[k] + curpos)
1011 free(matches[k]);
1013 matches[++j] = matches[k];
1014 matches[0] = strdup(text);
1015 matches[j + 1] = NULL;
1017 return matches;