sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 04ea68c362646efcbe743c614664729bd295be5a
parent f6d7b1ddd707964ba079c78650c6fa187698b6e2
Author: Laslo Hunhold <dev@frign.de>
Date:   Thu, 23 Dec 2021 10:37:42 +0100

libgrapheme - Proper newlines in code

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
Mlibs.suckless.org/libgrapheme/index.md | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libs.suckless.org/libgrapheme/index.md b/libs.suckless.org/libgrapheme/index.md @@ -67,7 +67,7 @@ into its user-perceived characters: #include <grapheme.h> #include <stdint.h> #include <stdio.h> - + int main(void) { @@ -77,14 +77,14 @@ into its user-perceived characters: "\x9F\x87\xBA\xF0\x9F\x87\xB8 \xE0\xA4\xA8\xE0" "\xA5\x80 \xE0\xAE\xA8\xE0\xAE\xBF!"; size_t ret, off; - + printf("Input: \"%s\"\n", s); - + for (off = 0; s[off] != '\0'; off += ret) { ret = grapheme_next_character_break(s + off, SIZE_MAX); printf("%2zu bytes | %.*s\n", ret, (int)ret, s + off, ret); } - + return 0; }