summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/list.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-03 07:35:39 +0200
committerTyge Lovset <[email protected]>2023-04-03 07:35:39 +0200
commite88b655ca8cf28d357f5088c205857954ad269e2 (patch)
tree5dd5b90b916e9b9c94765a24a784d860da27c441 /misc/examples/list.c
parent4abc7fe5bae28b7765d448ca8210548a9f0fa287 (diff)
downloadSTC-modified-e88b655ca8cf28d357f5088c205857954ad269e2.tar.gz
STC-modified-e88b655ca8cf28d357f5088c205857954ad269e2.zip
Renamed c_flt_n() => c_flt_getcount(), and c_flt_count() => c_flt_counter().
Diffstat (limited to 'misc/examples/list.c')
-rw-r--r--misc/examples/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/list.c b/misc/examples/list.c
index 620c2037..363d7fec 100644
--- a/misc/examples/list.c
+++ b/misc/examples/list.c
@@ -23,14 +23,14 @@ int main() {
printf("sum %f\n\n", sum);
c_forfilter (i, DList, list, c_flt_take(i, 10))
- printf("%8d: %10f\n", c_flt_n(i), *i.ref);
+ printf("%8d: %10f\n", c_flt_getcount(i), *i.ref);
puts("sort");
DList_sort(&list); // qsort O(n*log n)
puts("sorted");
c_forfilter (i, DList, list, c_flt_take(i, 10))
- printf("%8d: %10f\n", c_flt_n(i), *i.ref);
+ printf("%8d: %10f\n", c_flt_getcount(i), *i.ref);
puts("");
DList_drop(&list);