diff options
| author | Tyge Løvset <[email protected]> | 2020-07-24 19:55:59 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-07-24 19:55:59 +0200 |
| commit | 3d8f34c860095d6a19bcaaa0962bccae7369fd82 (patch) | |
| tree | 8b62391a5b7bff450120e393d3dc53e83ab12c0e /examples | |
| parent | a8a7f8359e21a46019682328c7d4ad13739678f2 (diff) | |
| download | STC-modified-3d8f34c860095d6a19bcaaa0962bccae7369fd82.tar.gz STC-modified-3d8f34c860095d6a19bcaaa0962bccae7369fd82.zip | |
Reorganised cstr.h to be used as a precompiled lib.
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++;
|
