aboutsummaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-05-16 19:13:05 +0200
committerTom Smeding <tom@tomsmeding.com>2021-05-16 19:13:05 +0200
commit831af1d49c9bb7d17794d259c99f92b2513496c5 (patch)
tree1a7674bb6d4fbcecf1e6b83ff1834b238b06f2a5 /utf8.h
parent6aebd10ba045085ed1d0ca7c0ffbf69196c3308c (diff)
server: WIP utf8 validation implementation
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
new file mode 100644
index 0000000..fea5e50
--- /dev/null
+++ b/utf8.h
@@ -0,0 +1,7 @@
+#pragma once
+
+#include <stddef.h>
+#include <stdbool.h>
+
+
+bool validate_utf8(const char *buf, size_t length);