3 struct example_list_struct
{
10 static struct example_list_struct element1
, element2
;
13 example_function(void)
15 struct example_list_struct
*s
;
17 list_init(example_list
);
20 list_add(example_list
, &element1
);
23 list_add(example_list
, &element2
);
25 for(s
= list_head(example_list
);
27 s
= list_item_next(s
)) {
28 printf("List element number %d\n", s
->number
);