diff options
| author | Tyge Løvset <[email protected]> | 2021-01-05 17:42:35 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-01-05 17:42:35 +0100 |
| commit | f929b1ab7a9314cbdf8148a585cf3807dc247f4b (patch) | |
| tree | 18196dcec729232a11b6434f914a985a157f0def /examples | |
| parent | 728398de810e196d17ddf7bd05c03307dffbb2b1 (diff) | |
| download | STC-modified-f929b1ab7a9314cbdf8148a585cf3807dc247f4b.tar.gz STC-modified-f929b1ab7a9314cbdf8148a585cf3807dc247f4b.zip | |
Fixed examples/words.c
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/words.c | 6 |
1 files 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" }); |
