From 151ff08f430069025818c1cc9bae37355f09a4a6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 13 Feb 2024 16:49:54 +0100 Subject: Bump librune --- vendor/librune/lib/mbstring/u8cmp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vendor/librune/lib/mbstring/u8cmp.c (limited to 'vendor/librune/lib') diff --git a/vendor/librune/lib/mbstring/u8cmp.c b/vendor/librune/lib/mbstring/u8cmp.c new file mode 100644 index 0000000..732896c --- /dev/null +++ b/vendor/librune/lib/mbstring/u8cmp.c @@ -0,0 +1,11 @@ +#include + +#include "mbstring.h" + +int +u8cmp(struct u8view x, struct u8view y) +{ + if (x.len != y.len) + return x.len > y.len ? +1 : -1; + return memcmp(x.p, y.p, x.len); +} -- cgit v1.2.3