1 #include <ccan/tlist2/tlist2.h>
10 struct list_node list;
13 int main(int argc, char *argv[])
15 TLIST2(struct child, list) children;
16 struct child child = { "child" };
18 #if !HAVE_FLEXIBLE_ARRAY_MEMBER
19 #error Need flexible array members to check type
26 tlist2_init(&children);
27 tlist2_add(&children, &child);
29 tlist2_for_each_safe(&children, c, n);