Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove superfluous printf-parameter from the example - libgrapheme - unicode st…
git clone git://git.suckless.org/libgrapheme
Log
Files
Refs
README
LICENSE
---
commit 4b4292a8f78eec4271213982fdddaf1c479dfe96
parent ef608a20a5431e68922e787cfdd68d893497d16f
Author: Laslo Hunhold <[email protected]>
Date: Fri, 7 Oct 2022 12:40:51 +0200
Remove superfluous printf-parameter from the example
This fortunately has no functional effect, it's just redundant.
Thanks to Kartik Agaram for reporting this!
Signed-off-by: Laslo Hunhold <[email protected]>
Diffstat:
M man/template/next_break.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/man/template/next_break.sh b/man/template/next_break.sh
@@ -82,7 +82,7 @@ main(void)
printf("${REALTYPE}s in NUL-delimited input:\\\\n");
for (off = 0; s[off] != '\\\\0'; off += ret) {
ret = grapheme_next_${TYPE}_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off);
}
printf("\\\\n");
@@ -91,7 +91,7 @@ main(void)
printf("${REALTYPE}s in input delimited to %zu bytes:\\\\n", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_${TYPE}_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off);
}
return 0;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.