Lines Matching refs:array
87 * A dynamically growable array of pointers.
102 if (list->array)
103 my_free(list->array);
111 if (list == NULL || list->array == NULL)
120 if (list->array == NULL)
123 return (list->array[i]);
131 if (list->array == NULL) {
135 list->array = my_malloc(sizeof(*list->array) * list->size);
139 list->array = my_realloc(list->array,
140 sizeof(*list->array) * list->size,
141 sizeof(*list->array) * list->size * 2);
144 if (list->array == NULL)
155 list->array[list->count++] = element;
170 if (list->array == NULL)
171 list->array = my_malloc(sizeof(*list->array) * list->size);
173 list->array = my_realloc(list->array, old_size,
174 sizeof(*list->array) * list->size);
176 if (list->array == NULL)
178 bcopy(extra->array, list->array + list->count,
179 extra->count * sizeof(*list->array));