aboutsummaryrefslogtreecommitdiff
path: root/lib/mbstring/u8cmp.c
blob: 8bd2400b819686dadee6b1fa086d865195fee527 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <string.h>

#include "mbstring.h"

int
u8cmp(const char8_t *x, size_t n, const char8_t *y, size_t m)
{
	return n != m ? (n > m ? +1 : -1) : memcmp(x, y, n);
}