aboutsummaryrefslogtreecommitdiff
path: root/src/libutf/runelen.c
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-12 09:22:01 -0800
committerNicholas <nbnoll@eml.cc>2021-11-12 09:22:01 -0800
commitce05175372a9ddca1a225db0765ace1127a39293 (patch)
tree5988b4d4f6b402e4953945886fc90aae11203df6 /src/libutf/runelen.c
parentb375f3cdedb5b0e08745d100b40e38d2f8396a58 (diff)
chore: simplified organizational structurelaptop
Diffstat (limited to 'src/libutf/runelen.c')
-rw-r--r--src/libutf/runelen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutf/runelen.c b/src/libutf/runelen.c
new file mode 100644
index 0000000..dac7f15
--- /dev/null
+++ b/src/libutf/runelen.c
@@ -0,0 +1,8 @@
+#include "internal.h"
+
+int
+utf8·runelen(rune r)
+{
+ byte s[10];
+ return utf8·encode(&r, s);
+}