aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/lib/gbrk/u8glen.c
blob: 13cac7e17978bf1c9b2511183ee58a834fcff505 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "gbrk.h"

size_t
u8glen(const char8_t *s, size_t n)
{
	size_t m = 0;
	struct u8view unused;

	while (u8gnext(&unused, &s, &n))
		m++;

	return m;
}