aboutsummaryrefslogtreecommitdiff
path: root/utf.c
diff options
context:
space:
mode:
Diffstat (limited to 'utf.c')
-rw-r--r--utf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utf.c b/utf.c
index b012184..de65172 100644
--- a/utf.c
+++ b/utf.c
@@ -3,7 +3,7 @@
#include "utf.h"
size_t
-utf8enc(uint_least32_t c, char *s)
+utf8enc(unsigned char *s, uint_least32_t c)
{
if (c < 0x80) {
s[0] = c;
@@ -31,7 +31,7 @@ utf8enc(uint_least32_t c, char *s)
}
size_t
-utf8dec(const char *s, size_t n, uint_least32_t *c)
+utf8dec(uint_least32_t *c, const char *s, size_t n)
{
size_t i, l;
unsigned char b;
@@ -67,7 +67,7 @@ utf8dec(const char *s, size_t n, uint_least32_t *c)
}
size_t
-utf16enc(uint_least32_t c, uint_least16_t *s)
+utf16enc(uint_least16_t *s, uint_least32_t c)
{
if (c < 0xd800 || c - 0xe000 < 0x2000) {
s[0] = c;