diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/geek4.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++;
|
