summaryrefslogtreecommitdiffhomepage
path: root/examples/utf8replace_c.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-07-31 09:15:36 +0200
committerTyge Løvset <[email protected]>2022-07-31 10:32:12 +0200
commit8a5478f7c14d4c7476d36b137fd7d2c8d95f2c13 (patch)
treee54045852e198dfbecbd82a55a854698658c4a6b /examples/utf8replace_c.c
parent90b4371d8a36ab609c2200289634c171a19f7fff (diff)
downloadSTC-modified-8a5478f7c14d4c7476d36b137fd7d2c8d95f2c13.tar.gz
STC-modified-8a5478f7c14d4c7476d36b137fd7d2c8d95f2c13.zip
csview: csview_token(sv, sep, &start): now start > sv.size on last token. Removed usage of c_ARGsv() macro in examples => printf formatting ".*s". csview fully inlined.
Diffstat (limited to 'examples/utf8replace_c.c')
-rw-r--r--examples/utf8replace_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/utf8replace_c.c b/examples/utf8replace_c.c
index 86d8bd69..792654b6 100644
--- a/examples/utf8replace_c.c
+++ b/examples/utf8replace_c.c
@@ -16,7 +16,7 @@ int main() {
printf("%s\n", cstr_str(&hello));
c_foreach (c, cstr, hello)
- printf("%" c_PRIsv ",", c_ARGsv(c.chr));
+ printf("%.*s,", c_ARGsv(c.chr));
puts("");
}
}