5 #include "ccan/darray/darray.h"
8 * darray - Generic resizable arrays
10 * darray is a set of macros for managing dynamically-allocated arrays.
11 * It removes the tedium of managing realloc'd arrays with pointer, size, and
15 * #include <ccan/darray/darray.h>
19 * darray(int) numbers = darray_new();
24 * darray_foreach(i, numbers)
26 * if (darray_size(numbers) > 0)
30 * fgets(buffer, sizeof(buffer), stdin);
31 * if (*buffer == '\0' || *buffer == '\n')
34 * darray_append(numbers, atoi(buffer));
37 * darray_free(numbers);
42 * Author: Joey Adams <joeyadams3.14159@gmail.com>
46 int main(int argc, char *argv[])
51 if (strcmp(argv[1], "depends") == 0) {