From 3d8f34c860095d6a19bcaaa0962bccae7369fd82 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 24 Jul 2020 19:55:59 +0200 Subject: Reorganised cstr.h to be used as a precompiled lib. --- examples/geek4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/geek4.c b/examples/geek4.c index 28c77e9f..81740367 100644 --- a/examples/geek4.c +++ b/examples/geek4.c @@ -63,7 +63,7 @@ int commonWords(CVec_str S) CMapEntry_sb tmp = {cstr_init, false}; while (i < cstr_size(S.data[0]) && S.data[0].str[i] != ' ') { - cstr_appendC(&word, S.data[0].str[i]); + cstr_pushBack(&word, S.data[0].str[i]); i++; } @@ -91,7 +91,7 @@ int commonWords(CVec_str S) while (i < cstr_size(S.data[j])) { CStr word = cstr_init; while (i < cstr_size(S.data[j]) && S.data[j].str[i] != ' ') { - cstr_appendC(&word, S.data[j].str[i]); + cstr_pushBack(&word, S.data[j].str[i]); i++; } i++; -- cgit v1.2.3