aboutsummaryrefslogtreecommitdiff
path: root/libutf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libutf.c')
-rw-r--r--libutf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libutf.c b/libutf.c
index 5f6ff45..c9d77dc 100644
--- a/libutf.c
+++ b/libutf.c
@@ -1,5 +1,12 @@
/* libutf8 © 2012-2015 Connor Lane Smith <cls@lubutu.com> */
#include "libutf.h"
+#include "util.h"
+
+const char *utfnext(const char *s) {
+ while (!ISUTF8(*s))
+ s++;
+ return s;
+}
int
runelen(Rune r)