diff options
| author | Tyge Løvset <[email protected]> | 2023-02-23 08:35:44 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-23 08:35:44 +0100 |
| commit | 4ff4c8d352f76b658214029988eab7ce1d69efe8 (patch) | |
| tree | b4344007993fdb6460b7d4ecd3536a7f1e2b91b6 /misc/examples/printspan.c | |
| parent | 95f0b246cedc2d3669575ed2bfb398e6fbcb2b2f (diff) | |
| download | STC-modified-4ff4c8d352f76b658214029988eab7ce1d69efe8.tar.gz STC-modified-4ff4c8d352f76b658214029988eab7ce1d69efe8.zip | |
Internal updates.
Diffstat (limited to 'misc/examples/printspan.c')
| -rw-r--r-- | misc/examples/printspan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/examples/printspan.c b/misc/examples/printspan.c index c7b0c609..81f6fa14 100644 --- a/misc/examples/printspan.c +++ b/misc/examples/printspan.c @@ -9,7 +9,7 @@ #define i_val int #include <stc/cdeq.h> #define i_val_str -#include <stc/cset.h> +#include <stc/csset.h> #include <stc/cspan.h> using_cspan(intspan, int, 1); @@ -25,7 +25,7 @@ int main() c_auto (cvec_int, vec) c_auto (cstack_int, stk) c_auto (cdeq_int, deq) - c_auto (cset_str, set) + c_auto (csset_str, set) { intspan sp1 = cspan_make(intspan, {1, 2}); printMe( sp1 ); @@ -48,9 +48,9 @@ int main() deq = c_make(cdeq_int, {1, 2, 3, 4, 5, 6, 7, 8}); printMe( (intspan)cspan_from(&deq) ); - set = c_make(cset_str, {"1", "2", "3", "4", "5", "6", "7", "8", "9"}); - printf("%d:", (int)cset_str_size(&set)); - c_foreach (e, cset_str, set) + set = c_make(csset_str, {"5", "7", "4", "3", "8", "2", "1", "9", "6"}); + printf("%d:", (int)csset_str_size(&set)); + c_foreach (e, csset_str, set) printf(" %s", cstr_str(e.ref)); puts(""); } |
