Lines Matching defs:list
65 * void sortlist(list)
66 * char **list
68 * This function sorts a list of character strings
69 * so that the list is ordered alphabetically.
72 * list The list to be sorted
78 sortlist(char **list) /* List to be sorted */
85 /* If the list isn't empty ... */
86 if (*list) {
88 /* Find the last item in the list */
89 for (pp = list; *pp; pp++)
95 * of the list (my CSC101 fails me, I forget what
100 while (pp != list) {
116 * Generate an alphabetized list of attribute names of the
135 char **list; /* Ptr to alloc'd list */
137 char **pp; /* Ptr to current val in list */
148 * the list
164 if (list = malloc(n*sizeof (char *))) {
165 pp = list;
199 sortlist(list);
200 rtnval = list;
202 for (pp = list; *pp; pp++) free(*pp);
203 free(list);