1 #include <ccan/tlist/tlist.h>
3 TLIST_TYPE(children, struct child);
12 struct list_node list;
15 int main(int argc, char *argv[])
17 struct tlist_children children;
18 struct child child = { "child" };
21 tlist_init(&children);
22 tlist_add(&children, &child, list);
24 c = tlist_tail(&children,
26 #if !HAVE_FLEXIBLE_ARRAY_MEMBER
27 #error Need flexible array members to check type
34 (void) c; /* Suppress unused-but-set-variable warning. */