5 * array - A collection of macros for generic dynamic array management.
7 * The array module provides generic dynamic array functions via macros. It
8 * removes the tedium of managing realloc'd arrays with pointer, size, and
9 * allocated size. It also fits into structures quite well.
11 * NOTE: The API is currently unstable. It will likely change in the near future.
14 * #include <ccan/array/array.h>
18 * Array(int) numbers = NewArray();
23 * AFor(i, numbers, printf("%d ", *i))
24 * if (numbers.size) puts("");
27 * fgets(buffer, sizeof(buffer), stdin);
28 * if (*buffer==0 || *buffer=='\n')
32 * AAppend(numbers, add);
42 int main(int argc, char *argv[])
47 if (strcmp(argv[1], "depends") == 0)