summaryrefslogtreecommitdiffhomepage
path: root/examples/replace.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-02-24 19:08:21 +0100
committerTyge Løvset <[email protected]>2021-02-24 19:08:21 +0100
commit1745da92874e1799c7d60f6e6810b398e9ab9f15 (patch)
treee2fcb84239a7e6a0711304fdf28618344cf7507e /examples/replace.c
parent46552181642b8ee52bc1a6e426c31b5c65aea499 (diff)
downloadSTC-modified-1745da92874e1799c7d60f6e6810b398e9ab9f15.tar.gz
STC-modified-1745da92874e1799c7d60f6e6810b398e9ab9f15.zip
More docs and some file renames.
Diffstat (limited to 'examples/replace.c')
-rw-r--r--examples/replace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/replace.c b/examples/replace.c
index 53e916fc..fdf5a7df 100644
--- a/examples/replace.c
+++ b/examples/replace.c
@@ -11,9 +11,9 @@ int main ()
// replace signatures used in the same order as described above:
// Ustring positions: 0123456789*123456789*12345
- cstr_t s = cstr_from(base); // "this is a test string."
+ cstr s = cstr_from(base); // "this is a test string."
- cstr_t m = cstr_clone(s);
+ cstr m = cstr_clone(s);
cstr_append(&m, m.str);
cstr_append(&m, m.str);
printf("%s\n", m.str);