diff options
| author | david <[email protected]> | 2026-10-13 07:43:48 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-10-13 07:43:48 -0300 |
| commit | f0f954d463f7ab0e0ce792527e6567611ed67bf9 (patch) | |
| tree | 862c75c87380f67c11c865797faa9cc0c25a5970 /src/helper.c | |
| parent | 3b16b2141ef5ce085ce50b737bc53ee3f7e556f3 (diff) | |
| download | mikusays-c-f0f954d463f7ab0e0ce792527e6567611ed67bf9.tar.gz mikusays-c-f0f954d463f7ab0e0ce792527e6567611ed67bf9.zip | |
50% colors i'll do rainbow and whatever else i'm missing from the rust version later too lseepy rn
Diffstat (limited to 'src/helper.c')
| -rw-r--r-- | src/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper.c b/src/helper.c index 2749daa..f258d23 100644 --- a/src/helper.c +++ b/src/helper.c @@ -4,7 +4,7 @@ /* this reads one utf81 character from the start of bytes it puts the character's number in *codepoint and returns how many bytes it used (its always 1 or more) invalid input it stores U+FFFD (�) and returns 1, so the caller always moves forward. */ -static int utf8_decode(const unsigned char *bytes, unsigned long *codepoint){ +int utf8_decode(const unsigned char *bytes, unsigned long *codepoint){ unsigned long value = bytes[0]; unsigned long minallowed = 0; //rejects overlong encodings int sequence_length; |
