summaryrefslogtreecommitdiffhomepage
path: root/examples/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/random.c')
-rw-r--r--examples/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/random.c b/examples/random.c
index b81f1826..df10acdc 100644
--- a/examples/random.c
+++ b/examples/random.c
@@ -58,10 +58,10 @@ int main()
if (n >= 0 && n < R) ++hist[n];
}
- cstr_t bar = cstr_ini;
+ cstr_t bar = cstr_INIT;
for (int i=0; i < R; ++i) {
cstr_take(&bar, cstr_with_size(hist[i] * 25ull * R / N2, '*'));
printf("%2d %s\n", i, bar.str);
}
- cstr_destroy(&bar);
+ cstr_del(&bar);
} \ No newline at end of file