From f929b1ab7a9314cbdf8148a585cf3807dc247f4b Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 5 Jan 2021 17:42:35 +0100 Subject: Fixed examples/words.c --- examples/words.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/words.c b/examples/words.c index 5f24a944..693e302e 100644 --- a/examples/words.c +++ b/examples/words.c @@ -11,17 +11,17 @@ using_cmap_strkey(si, int); int main1() { - c_defcon (clist_str, lwords, { + c_init (clist_str, lwords, { "this", "sentence", "is", "not", "a", "sentence", "this", "sentence", "is", "a", "hoax" }); - + clist_str_push_back(&lwords, cstr_from_fmt("%f", 123897.0 / 23.0)); c_foreach (w, clist_str, lwords) printf("%s\n", w.ref->str); puts(""); - c_defcon (cvec_str, words, { + c_init (cvec_str, words, { "this", "sentence", "is", "not", "a", "sentence", "this", "sentence", "is", "a", "hoax" }); -- cgit v1.2.3