diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/list.c b/examples/list.c index 2f5fa964..1f21304f 100644 --- a/examples/list.c +++ b/examples/list.c @@ -25,14 +25,14 @@ int main() { sum += *i.ref; printf("sum %f\n\n", sum); - c_forloop (i, clist_fx, list, i.index < 10) + c_forwhile (i, clist_fx, list, i.index < 10) printf("%8d: %10f\n", (int)i.index, *i.ref); puts("sort"); clist_fx_sort(&list); // mergesort O(n*log n) puts("sorted"); - c_forloop (i, clist_fx, list, i.index < 10) + c_forwhile (i, clist_fx, list, i.index < 10) printf("%8d: %10f\n", (int)i.index, *i.ref); puts(""); |
