Use the list_item_next() API
This commit is contained in:
parent
560c84a2fe
commit
7647cbd8aa
11 changed files with 50 additions and 50 deletions
|
@ -24,7 +24,7 @@ example_function(void)
|
|||
|
||||
for(s = list_head(example_list);
|
||||
s != NULL;
|
||||
s = s->next) {
|
||||
s = list_item_next(s)) {
|
||||
printf("List element number %d\n", s->number);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue