[wiki] [sites] Sync manual examples with a fixed version || Laslo Hunhold
commit e3a1bb8db1b461db865f922823f2772923e0806d
Author: Laslo Hunhold <dev_AT_frign.de>
Date: Fri Oct 7 12:42:51 2022 +0200
Sync manual examples with a fixed version
Thanks to Kartik Agaram for reporting this!
Signed-off-by: Laslo Hunhold <dev_AT_frign.de>
diff --git a/libs.suckless.org/libgrapheme/index.md b/libs.suckless.org/libgrapheme/index.md
index bf1f595a..938a2009 100644
--- a/libs.suckless.org/libgrapheme/index.md
+++ b/libs.suckless.org/libgrapheme/index.md
_AT_@ -93,7 +93,7 @@ into its user-perceived characters:
printf("grapheme clusters in NUL-delimited input:
");
for (off = 0; s[off] != ' ret = grapheme_next_character_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
printf("
");
_AT_@ -102,7 +102,7 @@ into its user-perceived characters:
printf("grapheme clusters in input delimited to %zu bytes:
", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_character_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
return 0;
diff --git a/libs.suckless.org/libgrapheme/man/grapheme_next_character_break_utf8.3/index.md b/libs.suckless.org/libgrapheme/man/grapheme_next_character_break_utf8.3/index.md
index 245b5ed4..a899577a 100644
--- a/libs.suckless.org/libgrapheme/man/grapheme_next_character_break_utf8.3/index.md
+++ b/libs.suckless.org/libgrapheme/man/grapheme_next_character_break_utf8.3/index.md
_AT_@ -76,7 +76,7 @@ is
printf("grapheme clusters in NUL-delimited input:
");
for (off = 0; s[off] != ' ret = grapheme_next_character_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
printf("
");
_AT_@ -85,7 +85,7 @@ is
printf("grapheme clusters in input delimited to %zu bytes:
", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_character_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
return 0;
diff --git a/libs.suckless.org/libgrapheme/man/grapheme_next_line_break_utf8.3/index.md b/libs.suckless.org/libgrapheme/man/grapheme_next_line_break_utf8.3/index.md
index 660236fe..4401f777 100644
--- a/libs.suckless.org/libgrapheme/man/grapheme_next_line_break_utf8.3/index.md
+++ b/libs.suckless.org/libgrapheme/man/grapheme_next_line_break_utf8.3/index.md
_AT_@ -72,7 +72,7 @@ is
printf("possible lines in NUL-delimited input:
");
for (off = 0; s[off] != ' ret = grapheme_next_line_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
printf("
");
_AT_@ -81,7 +81,7 @@ is
printf("possible lines in input delimited to %zu bytes:
", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_line_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
return 0;
diff --git a/libs.suckless.org/libgrapheme/man/grapheme_next_sentence_break_utf8.3/index.md b/libs.suckless.org/libgrapheme/man/grapheme_next_sentence_break_utf8.3/index.md
index f3a4c89c..6afdf512 100644
--- a/libs.suckless.org/libgrapheme/man/grapheme_next_sentence_break_utf8.3/index.md
+++ b/libs.suckless.org/libgrapheme/man/grapheme_next_sentence_break_utf8.3/index.md
_AT_@ -75,7 +75,7 @@ is
printf("sentences in NUL-delimited input:
");
for (off = 0; s[off] != ' ret = grapheme_next_sentence_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
printf("
");
_AT_@ -84,7 +84,7 @@ is
printf("sentences in input delimited to %zu bytes:
", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_sentence_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
return 0;
diff --git a/libs.suckless.org/libgrapheme/man/grapheme_next_word_break_utf8.3/index.md b/libs.suckless.org/libgrapheme/man/grapheme_next_word_break_utf8.3/index.md
index d9488730..18cfc807 100644
--- a/libs.suckless.org/libgrapheme/man/grapheme_next_word_break_utf8.3/index.md
+++ b/libs.suckless.org/libgrapheme/man/grapheme_next_word_break_utf8.3/index.md
_AT_@ -75,7 +75,7 @@ is
printf("words in NUL-delimited input:
");
for (off = 0; s[off] != ' ret = grapheme_next_word_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
printf("
");
_AT_@ -84,7 +84,7 @@ is
printf("words in input delimited to %zu bytes:
", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_word_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s
", ret, (int)ret, s + off);
}
return 0;
Received on Fri Oct 07 2022 - 12:43:15 CEST
This archive was generated by hypermail 2.3.0
: Fri Oct 07 2022 - 12:48:53 CEST