summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/csset_erase.c2
-rw-r--r--examples/demos.c2
-rw-r--r--examples/list_erase.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/csset_erase.c b/examples/csset_erase.c
index 96bc4c98..9a05290d 100644
--- a/examples/csset_erase.c
+++ b/examples/csset_erase.c
@@ -15,7 +15,7 @@ int main()
c_foreach (k, csset_i, it, csset_i_end(&set)) printf(" %d", *k.ref); puts("");
printf("Erase values >= %d:\n", val);
- while (it.ref) it = csset_i_erase_it(&set, it);
+ while (it.ref) it = csset_i_erase_at(&set, it);
c_foreach (k, csset_i, set) printf(" %d", *k.ref); puts("");
val = 35;
diff --git a/examples/demos.c b/examples/demos.c
index f6f1a6cf..1eb74525 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -170,7 +170,7 @@ void mapdemo3()
printf("entry: %s: %s\n", i.ref->first.str, i.ref->second.str);
printf("size %zu: remove: Make: %s\n", cmap_str_size(table), it.ref->second.str);
//cmap_str_erase(&table, "Make");
- cmap_str_erase_it(&table, it);
+ cmap_str_erase_at(&table, it);
printf("size %zu\n", cmap_str_size(table));
c_foreach (i, cmap_str, table)
diff --git a/examples/list_erase.c b/examples/list_erase.c
index fd68b250..6e70b103 100644
--- a/examples/list_erase.c
+++ b/examples/list_erase.c
@@ -10,7 +10,7 @@ int main ()
// 10 20 30 40 50
clist_i_iter_t it = clist_i_begin(&L); // ^
clist_i_next(&it);
- it = clist_i_erase_it(&L, it); // 10 30 40 50
+ it = clist_i_erase_at(&L, it); // 10 30 40 50
// ^
clist_i_iter_t end = clist_i_end(&L); //
clist_i_next(&it);