diff options
| author | Tyge Løvset <[email protected]> | 2023-04-02 22:13:48 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-04-02 22:13:48 +0200 |
| commit | 4abc7fe5bae28b7765d448ca8210548a9f0fa287 (patch) | |
| tree | 5fa02e7ca32329f9deab067b4283259931284a4e /misc | |
| parent | b81d7e44bd84a3c8513980a71a06d939f44af16b (diff) | |
| download | STC-modified-4abc7fe5bae28b7765d448ca8210548a9f0fa287.tar.gz STC-modified-4abc7fe5bae28b7765d448ca8210548a9f0fa287.zip | |
Renamed c_flt_last(i) => c_flt_n(i) in algo/filter.h
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/examples/list.c | 4 | ||||
| -rw-r--r-- | misc/examples/prime.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/list.c b/misc/examples/list.c index eb81067d..620c2037 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_last(i), *i.ref); + printf("%8d: %10f\n", c_flt_n(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_last(i), *i.ref); + printf("%8d: %10f\n", c_flt_n(i), *i.ref); puts(""); DList_drop(&list); diff --git a/misc/examples/prime.c b/misc/examples/prime.c index 34d64f10..d78f3ad3 100644 --- a/misc/examples/prime.c +++ b/misc/examples/prime.c @@ -47,7 +47,7 @@ int main(void) c_flt_take(i, 50) ){ printf("%lld ", *i.ref); - if (c_flt_last(i) % 10 == 0) puts(""); + if (c_flt_n(i) % 10 == 0) puts(""); } cbits_drop(&primes); |
