#include <stdio.h>

#define countof(array) (sizeof(array) / sizeof((array)[0]))

typedef struct list_item {
    const char *title;
    int *data;
} list_item;

static list_item list[] = {
   { "foo", (int[]){ 1, 2, 3, 0 } },
   { "bar", (int[]){ 1, 2, 0}     },
   { "baz", (int[]){ 1, 0 }       },
};

int main(void)
{
    for (size_t i = 0; i < countof(list); i++) {
        printf("%d %s\n", i, list[i].title);

        for (size_t j = 0; j < list[i].data[j]; j++) {
            printf("- %d %i\n", j, list[i].data[j]);
        } 
    }
}
