diff options
author | 2022-11-30 22:51:35 +0100 | |
---|---|---|
committer | 2022-11-30 22:51:35 +0100 | |
commit | c70ac3e80e0110731a445ac9ac7f615ef85ab488 (patch) | |
tree | ac7a8d6690dfd1232f7c59766dfc56fd62e59e0f | |
parent | c6461422f7fd056a951a2e5ec553bbfbd7ddd50e (diff) | |
download | utils-c70ac3e80e0110731a445ac9ac7f615ef85ab488.tar.gz utils-c70ac3e80e0110731a445ac9ac7f615ef85ab488.zip |
Rename iterator_next() to clist_iterator_next()
-rw-r--r-- | src/list.c | 2 | ||||
-rw-r--r-- | src/list.h | 2 | ||||
-rw-r--r-- | test/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -95,7 +95,7 @@ int clist_iterator_has_next(iterator_t *iterator) return iterator->current != NULL; } -list_item_t *iterator_next(iterator_t *iterator) +list_item_t *clist_iterator_next(iterator_t *iterator) { struct list_item_t *current = iterator->current; iterator->current = iterator->current->next; @@ -41,6 +41,6 @@ void clist_add_all (list_t *, list_t *); void clist_remove (list_t *, list_item_t *); iterator_t clist_iterator (list_t *); int clist_iterator_has_next(iterator_t *); -list_item_t *iterator_next (iterator_t *); +list_item_t *clist_iterator_next (iterator_t *); #endif diff --git a/test/main.c b/test/main.c index 77b78ac..e1c0c6c 100644 --- a/test/main.c +++ b/test/main.c @@ -56,7 +56,7 @@ int main(int argc, char** argv) it = clist_iterator(&list1); while(clist_iterator_has_next(&it)) { - current = iterator_next(&it); + current = clist_iterator_next(&it); printf("%s\n", (char *) current->data); } |