summaryrefslogtreecommitdiffhomepage
path: root/include/stc/utf8.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-05-13 14:36:25 +0200
committerTyge Løvset <[email protected]>2022-05-13 14:36:25 +0200
commit688a828e3bfaa1d56d50e132b31930d964e26c5d (patch)
treee8649a2ec64c34bc0ca251ed8208edf1d9d70d23 /include/stc/utf8.h
parenteda5a6418d0dda97261e340998f8f7e23a8e57b2 (diff)
downloadSTC-modified-688a828e3bfaa1d56d50e132b31930d964e26c5d.tar.gz
STC-modified-688a828e3bfaa1d56d50e132b31930d964e26c5d.zip
Changed csview c_PRIsv macro. Now must be prefixed with "%", to match with PRIxYYY macros from inttypes.h. E.g. printf("%40" c_PRIsv "\n", c_ARGsv(sv)); to specify 40 character right aligned output of sv. Check your usage.
Diffstat (limited to 'include/stc/utf8.h')
-rw-r--r--include/stc/utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/utf8.h b/include/stc/utf8.h
index 9a1493b6..50fbefc7 100644
--- a/include/stc/utf8.h
+++ b/include/stc/utf8.h
@@ -15,7 +15,7 @@ int main()
csview sv = csview_from_s(s1);
c_foreach (i, csview, sv)
- printf(c_PRIsv ",", c_ARGsv(i.codep));
+ printf("%" c_PRIsv ",", c_ARGsv(i.codep));
}
}
// Output: